Modified Files:

animation.cxx: Change the pick animation to better handle different
	mouse buttons.
This commit is contained in:
frohlich
2007-01-07 11:53:21 +00:00
parent d6f64f9773
commit 18ae1d6940

View File

@@ -2164,7 +2164,10 @@ SGPickAnimation::createAnimationGroup(osg::Group& parent)
osg::Group* normalGroup = new osg::Group;
normalGroup->addChild(commonGroup);
SGSceneUserData* ud = SGSceneUserData::getOrCreateSceneUserData(normalGroup);
ud->setPickCallback(new PickCallback(getConfig(), getModelRoot()));
std::vector<SGPropertyNode_ptr> actions;
actions = getConfig()->getChildren("action");
for (unsigned int i = 0; i < actions.size(); ++i)
ud->addPickCallback(new PickCallback(actions[i], getModelRoot()));
// Used to render the geometry with just yellow edges
osg::Group* highlightGroup = new osg::Group;