Modified Files:

scene/tgdb/SGOceanTile.cxx: add missing transform for the ocean
	tile.
This commit is contained in:
frohlich
2007-06-03 18:28:14 +00:00
parent 04cd9b3eb6
commit d1dedc7511

View File

@@ -29,6 +29,7 @@
#include <osg/Geode>
#include <osg/Geometry>
#include <osg/MatrixTransform>
#include <osg/StateSet>
#include <simgear/bucket/newbucket.hxx>
@@ -126,6 +127,11 @@ osg::Node* SGOceanTile(const SGBucket& b, SGMaterialLib *matlib)
geode->setName("Ocean tile");
geode->addDrawable(geometry);
geode->setStateSet(stateSet);
osg::MatrixTransform* transform = new osg::MatrixTransform;
transform->setName("Ocean");
transform->setMatrix(osg::Matrix::translate(cartCenter.osg()));
transform->addChild(geode);
return geode;
return transform;
}