spt: Disable particle systems under a PagedLOD.

This commit is contained in:
Mathias Froehlich 2012-07-21 12:55:53 +02:00
parent c82da8c9c8
commit a5c6f8023b

View 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;