From 73b974f1b528993dc603bf641d613ab7f5fdcd4d Mon Sep 17 00:00:00 2001 From: fredb Date: Fri, 12 Dec 2008 19:57:25 +0000 Subject: [PATCH] Csaba/Jester : fix a problem with material animation --- simgear/scene/model/SGMaterialAnimation.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simgear/scene/model/SGMaterialAnimation.cxx b/simgear/scene/model/SGMaterialAnimation.cxx index 03e95064..a5b4c693 100644 --- a/simgear/scene/model/SGMaterialAnimation.cxx +++ b/simgear/scene/model/SGMaterialAnimation.cxx @@ -375,8 +375,10 @@ SGMaterialAnimation::createAnimationGroup(osg::Group& parent) const SGPropertyNode* node = getConfig()->getChild("property-base"); if (node) inputRoot = getModelRoot()->getNode(node->getStringValue(), true); - if (getConfig()->hasChild("texture-prop")) + if (getConfig()->hasChild("texture-prop")) { osg::StateSet* stateSet = group->getOrCreateStateSet(); + stateSet->setDataVariance(osg::Object::DYNAMIC); + } if (getConfig()->hasChild("texture")) { std::string textureName = getConfig()->getStringValue("texture"); std::string textureFile; -- 2.39.5