]> git.mxchange.org Git - simgear.git/commitdiff
Csaba/Jester : fix a problem with tex transform animation
authorfredb <fredb>
Fri, 12 Dec 2008 20:02:44 +0000 (20:02 +0000)
committerfredb <fredb>
Fri, 12 Dec 2008 20:02:44 +0000 (20:02 +0000)
simgear/scene/model/animation.cxx

index 1dd74cc9baead72141dce8364ca3660a100211a3..96057e80ef40c13cb565ebf8b879a92dbafa6f88 100644 (file)
@@ -1820,6 +1820,7 @@ SGTexTransformAnimation::createAnimationGroup(osg::Group& parent)
   osg::Group* group = new osg::Group;
   group->setName("texture transform group");
   osg::StateSet* stateSet = group->getOrCreateStateSet();
+  stateSet->setDataVariance(osg::Object::DYNAMIC);  
   osg::TexMat* texMat = new osg::TexMat;
   UpdateCallback* updateCallback = new UpdateCallback(getCondition());
   // interpret the configs ...