]> git.mxchange.org Git - simgear.git/commitdiff
Fix pick-callbacks with no action.
authorJames Turner <zakalawe@mac.com>
Tue, 12 Mar 2013 21:14:31 +0000 (21:14 +0000)
committerJames Turner <zakalawe@mac.com>
Tue, 12 Mar 2013 21:14:31 +0000 (21:14 +0000)
Ensure pick animations work only to show a tooltip. Thanks to Emilian
for noticing I broke this

simgear/scene/model/SGPickAnimation.cxx

index 68da16fbd13847520c911c0d8a8c2372560081b4..67a6fc91f78b92d9e9b09f4fe71f722460090dc0 100644 (file)
@@ -388,6 +388,7 @@ SGPickAnimation::innerSetupPickGroup(osg::Group* commonGroup, osg::Group& parent
        // make a trivial PickCallback to hang the hovered off of
        SGPropertyNode_ptr dummyNode(new SGPropertyNode);
        pickCb = new PickCallback(dummyNode.ptr(), getModelRoot());
+       ud->addPickCallback(pickCb);
      }
        
      pickCb->addHoverBindings(getConfig()->getNode("hovered"), getModelRoot());