diff --git a/simgear/scene/model/SGPickAnimation.cxx b/simgear/scene/model/SGPickAnimation.cxx index dd10a9c8..3c6a2da0 100644 --- a/simgear/scene/model/SGPickAnimation.cxx +++ b/simgear/scene/model/SGPickAnimation.cxx @@ -407,7 +407,7 @@ SGPickAnimation::apply(osg::Group& group) pickGroup->setStateSet(sharedHighlightStateSet()); mainGroup->addChild(pickGroup); - setupCallbacks(SGSceneUserData::getOrCreateSceneUserData(pickGroup), mainGroup); + setupCallbacks(SGSceneUserData::getOrCreateSceneUserData(mainGroup), mainGroup); pickGroup->addChild(child); group.removeChild(child);