Added STATIC_OBJECT_DETECTION optimizer pass to OpenFlight plugin

This commit is contained in:
Robert Osfield 2007-02-22 09:16:54 +00:00
parent 8dc84d0a8f
commit b14fc636e7

View File

@ -242,7 +242,12 @@ class FLTReaderWriter : public ReaderWriter
if (!document.getPreserveFace())
{
osgUtil::Optimizer optimizer;
optimizer.optimize(document.getHeaderNode(), osgUtil::Optimizer::SHARE_DUPLICATE_STATE | osgUtil::Optimizer::MERGE_GEOMETRY | osgUtil::Optimizer::MERGE_GEODES | osgUtil::Optimizer::TESSELLATE_GEOMETRY );
optimizer.optimize(document.getHeaderNode(),
osgUtil::Optimizer::SHARE_DUPLICATE_STATE |
osgUtil::Optimizer::MERGE_GEOMETRY |
osgUtil::Optimizer::MERGE_GEODES |
osgUtil::Optimizer::TESSELLATE_GEOMETRY |
osgUtil::Optimizer::STATIC_OBJECT_DETECTION);
}
return document.getHeaderNode();