From d1dedc751174d989b2db89be6e8a0dc1a8bd084f Mon Sep 17 00:00:00 2001 From: frohlich Date: Sun, 3 Jun 2007 18:28:14 +0000 Subject: [PATCH] Modified Files: scene/tgdb/SGOceanTile.cxx: add missing transform for the ocean tile. --- simgear/scene/tgdb/SGOceanTile.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; } -- 2.39.5