From a95aed104788c83ea3a299515ce2f3c257d08900 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sat, 16 Feb 2008 17:01:01 +0000 Subject: [PATCH] remove getRootNode(), as this resets the model root --- simgear/scene/model/SGMaterialAnimation.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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")) { -- 2.39.5