]> git.mxchange.org Git - simgear.git/commitdiff
Mark static transforms as static.
authorfrohlich <frohlich>
Thu, 11 Jun 2009 18:32:46 +0000 (18:32 +0000)
committerTim Moore <timoore@redhat.com>
Mon, 15 Jun 2009 08:23:21 +0000 (10:23 +0200)
Modified Files:
simgear/scene/tgdb/TileEntry.cxx

simgear/scene/tgdb/TileEntry.cxx

index f5f76d92a2b8fce31664df89509adf1f3c3384d0..8cc4db3db7371eb31c012f31305d73803084c2d7 100644 (file)
@@ -388,6 +388,7 @@ TileEntry::loadTileByFileName(const string& fileName,
             WorldCoordinate( obj_pos, obj->lat, obj->lon, obj->elev, obj->hdg );
 
             osg::MatrixTransform *obj_trans = new osg::MatrixTransform;
+            obj_trans->setDataVariance(osg::Object::STATIC);
             obj_trans->setMatrix( obj_pos );
 
             // wire as much of the scene graph together as we can
@@ -408,6 +409,7 @@ TileEntry::loadTileByFileName(const string& fileName,
             WorldCoordinate( obj_pos, obj->lat, obj->lon, obj->elev, obj->hdg );
 
             osg::MatrixTransform *obj_trans = new osg::MatrixTransform;
+            obj_trans->setDataVariance(osg::Object::STATIC);
             obj_trans->setMatrix( obj_pos );
 
             osg::Node *custom_obj = 0;