On Wed, Dec 10, 2008 at 12:04 PM, Alexis Bory - xiii
<[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a problem with how the f-14b liveries textures are applied over MP:

Seem to be the same issue as with the dr400, but this time with the
material animation.

-- 
Csaba/Jester
Index: simgear/scene/model/SGMaterialAnimation.cxx
===================================================================
RCS file: /var/cvs/SimGear-0.3/source/simgear/scene/model/SGMaterialAnimation.cxx,v
retrieving revision 1.7
diff -u -r1.7 SGMaterialAnimation.cxx
--- simgear/scene/model/SGMaterialAnimation.cxx	16 Feb 2008 17:01:01 -0000	1.7
+++ simgear/scene/model/SGMaterialAnimation.cxx	10 Dec 2008 14:57:14 -0000
@@ -375,8 +375,10 @@
   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;
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to