]> git.mxchange.org Git - simgear.git/commitdiff
spt: Disable particle systems under a PagedLOD.
authorMathias Froehlich <Mathias.Froehlich@web.de>
Sat, 21 Jul 2012 10:55:53 +0000 (12:55 +0200)
committerMathias Froehlich <Mathias.Froehlich@web.de>
Sat, 21 Jul 2012 10:55:53 +0000 (12:55 +0200)
simgear/scene/tgdb/ReaderWriterSPT.cxx

index cf4a31b10203f56760b03f27eed5788bcda29903..dacb89cfa1ac2e332630f6b52fe833b264df04c0 100644 (file)
@@ -229,6 +229,11 @@ ReaderWriterSPT::createPagedLOD(const BucketBox& bucketBox, const osgDB::Options
 
     osg::ref_ptr<osgDB::Options> localOptions;
     localOptions = static_cast<osgDB::Options*>(options->clone(osg::CopyOp()));
+    // FIXME:
+    // The particle systems have nodes with culling disabled.
+    // PagedLOD nodes with childnodes like this will never expire.
+    // So, for now switch them off.
+    localOptions->setPluginStringData("SimGear::PARTICLESYSTEM", "OFF");
     pagedLOD->setDatabaseOptions(localOptions.get());
         
     float range;