From 18ae1d6940a83643106ac58e13e1fd0a0340794a Mon Sep 17 00:00:00 2001 From: frohlich Date: Sun, 7 Jan 2007 11:53:21 +0000 Subject: [PATCH] Modified Files: animation.cxx: Change the pick animation to better handle different mouse buttons. --- simgear/scene/model/animation.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simgear/scene/model/animation.cxx b/simgear/scene/model/animation.cxx index 395c6a31..c6ef34d1 100644 --- a/simgear/scene/model/animation.cxx +++ b/simgear/scene/model/animation.cxx @@ -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 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; -- 2.39.5