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:
parent
c6093430ae
commit
59cc200f92
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user