From: mfranz Date: Sat, 16 Feb 2008 17:01:01 +0000 (+0000) Subject: remove getRootNode(), as this resets the model root X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a95aed104788c83ea3a299515ce2f3c257d08900;p=simgear.git remove getRootNode(), as this resets the model root --- diff --git a/simgear/scene/model/SGMaterialAnimation.cxx b/simgear/scene/model/SGMaterialAnimation.cxx index 8702b44c..03e95064 100644 --- a/simgear/scene/model/SGMaterialAnimation.cxx +++ b/simgear/scene/model/SGMaterialAnimation.cxx @@ -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")) {