From a5c6f8023b119f8fc2807182978781ab1efafbef Mon Sep 17 00:00:00 2001 From: Mathias Froehlich Date: Sat, 21 Jul 2012 12:55:53 +0200 Subject: [PATCH] spt: Disable particle systems under a PagedLOD. --- simgear/scene/tgdb/ReaderWriterSPT.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.39.5