From: James Turner Date: Sat, 22 Jun 2013 10:59:42 +0000 (+0100) Subject: Fix pick callbacks on scenery. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=59cc200f92185b91208e836a8e978f509cdddb48;p=simgear.git Fix pick callbacks on scenery. Ensure pick callbacks work over the whole pick group, otherwise the visible render group is hit first, and resolves to the ground pick callback instead. This fixes the hangar doors at KSFO and Moffett. --- 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);