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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user