From: frohlich Date: Thu, 11 Jun 2009 18:32:46 +0000 (+0000) Subject: Mark static transforms as static. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ca53add820a314b31c903e09acf4af0d72bd8213;p=simgear.git Mark static transforms as static. Modified Files: simgear/scene/tgdb/TileEntry.cxx --- diff --git a/simgear/scene/tgdb/TileEntry.cxx b/simgear/scene/tgdb/TileEntry.cxx index f5f76d92..8cc4db3d 100644 --- a/simgear/scene/tgdb/TileEntry.cxx +++ b/simgear/scene/tgdb/TileEntry.cxx @@ -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;