]> git.mxchange.org Git - simgear.git/commitdiff
Csaba/Jester : fix a problem with material animation
authorfredb <fredb>
Fri, 12 Dec 2008 19:57:25 +0000 (19:57 +0000)
committerfredb <fredb>
Fri, 12 Dec 2008 19:57:25 +0000 (19:57 +0000)
simgear/scene/model/SGMaterialAnimation.cxx

index 03e9506490af97ef3ad54cceb49d74e860d79ee9..a5b4c693cfc3147b528e0f32e6751c81d4b1bdda 100644 (file)
@@ -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;