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")) {