From: frohlich Date: Sun, 3 Jun 2007 18:28:14 +0000 (+0000) Subject: Modified Files: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d1dedc751174d989b2db89be6e8a0dc1a8bd084f;p=simgear.git Modified Files: scene/tgdb/SGOceanTile.cxx: add missing transform for the ocean tile. --- diff --git a/simgear/scene/tgdb/SGOceanTile.cxx b/simgear/scene/tgdb/SGOceanTile.cxx index 017436ea..48b55562 100644 --- a/simgear/scene/tgdb/SGOceanTile.cxx +++ b/simgear/scene/tgdb/SGOceanTile.cxx @@ -29,6 +29,7 @@ #include #include +#include #include #include @@ -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; }