From 59cc200f92185b91208e836a8e978f509cdddb48 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 22 Jun 2013 11:59:42 +0100 Subject: [PATCH] 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. --- simgear/scene/model/SGPickAnimation.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5