Added STATIC_OBJECT_DETECTION optimizer pass to OpenFlight plugin
This commit is contained in:
parent
8dc84d0a8f
commit
b14fc636e7
@ -242,7 +242,12 @@ class FLTReaderWriter : public ReaderWriter
|
|||||||
if (!document.getPreserveFace())
|
if (!document.getPreserveFace())
|
||||||
{
|
{
|
||||||
osgUtil::Optimizer optimizer;
|
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();
|
return document.getHeaderNode();
|
||||||
|
Loading…
Reference in New Issue
Block a user