From: fredb Date: Fri, 12 Dec 2008 19:57:25 +0000 (+0000) Subject: Csaba/Jester : fix a problem with material animation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=73b974f1b528993dc603bf641d613ab7f5fdcd4d;p=simgear.git Csaba/Jester : fix a problem with material animation --- 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;