]> git.mxchange.org Git - simgear.git/commitdiff
remove getRootNode(), as this resets the model root
authormfranz <mfranz>
Sat, 16 Feb 2008 17:01:01 +0000 (17:01 +0000)
committermfranz <mfranz>
Sat, 16 Feb 2008 17:01:01 +0000 (17:01 +0000)
simgear/scene/model/SGMaterialAnimation.cxx

index 8702b44caaebce93ddcaec2763c212bf6b510774..03e9506490af97ef3ad54cceb49d74e860d79ee9 100644 (file)
@@ -374,8 +374,7 @@ SGMaterialAnimation::createAnimationGroup(osg::Group& parent)
   SGPropertyNode* inputRoot = getModelRoot();
   const SGPropertyNode* node = getConfig()->getChild("property-base");
   if (node)
-    inputRoot = getModelRoot()->getRootNode()->getNode(node->getStringValue(),
-                                                       true);
+    inputRoot = getModelRoot()->getNode(node->getStringValue(), true);
   if (getConfig()->hasChild("texture-prop"))
       osg::StateSet* stateSet = group->getOrCreateStateSet();
   if (getConfig()->hasChild("texture")) {