From: Mathias Froehlich Date: Sat, 21 Jul 2012 10:55:53 +0000 (+0200) Subject: spt: Disable particle systems under a PagedLOD. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a5c6f8023b119f8fc2807182978781ab1efafbef;p=simgear.git spt: Disable particle systems under a PagedLOD. --- diff --git a/simgear/scene/tgdb/ReaderWriterSPT.cxx b/simgear/scene/tgdb/ReaderWriterSPT.cxx index cf4a31b1..dacb89cf 100644 --- a/simgear/scene/tgdb/ReaderWriterSPT.cxx +++ b/simgear/scene/tgdb/ReaderWriterSPT.cxx @@ -229,6 +229,11 @@ ReaderWriterSPT::createPagedLOD(const BucketBox& bucketBox, const osgDB::Options osg::ref_ptr localOptions; localOptions = static_cast(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;