scene/tgdb/SGOceanTile.cxx: add missing transform for the ocean
tile.
#include <osg/Geode>
#include <osg/Geometry>
+#include <osg/MatrixTransform>
#include <osg/StateSet>
#include <simgear/bucket/newbucket.hxx>
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;
}