-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

gh.robin wrote:
> 
> hello,
> 
> With OSG    when flying over Ocean tile (not Ocean Coast line) GeodInfo 
> returns  "nil" instead of Ocean
> 
Can you try this patch?

Thanks,
Tim

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFG/YNFeDhWHdXrDRURAi/BAKCo62BWpGvzR6c8i4iJq2pvh38eWACgjjUU
9lCHLSs0OLhZWhFhDqFllQE=
=j2fX
-----END PGP SIGNATURE-----
diff --git a/simgear/scene/tgdb/SGOceanTile.cxx b/simgear/scene/tgdb/SGOceanTile.cxx
index af1dddf..59083b9 100644
--- a/simgear/scene/tgdb/SGOceanTile.cxx
+++ b/simgear/scene/tgdb/SGOceanTile.cxx
@@ -298,11 +298,11 @@ osg::Node* SGOceanTile(const SGBucket& b, SGMaterialLib *matlib)
                                            + 2 * (latPoints - 1)));
     fillDrawElementsWithApron(latPoints, lonPoints, drawElements->begin());
     geometry->addPrimitiveSet(drawElements);
+    geometry->setStateSet(stateSet);
 
     osg::Geode* geode = new osg::Geode;
     geode->setName("Ocean tile");
     geode->addDrawable(geometry);
-    geode->setStateSet(stateSet);
 
     osg::MatrixTransform* transform = new osg::MatrixTransform;
     transform->setName("Ocean");
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to