From b14fc636e7e12a64ba3151b89d23ffea87eacb95 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 22 Feb 2007 09:16:54 +0000 Subject: [PATCH] Added STATIC_OBJECT_DETECTION optimizer pass to OpenFlight plugin --- src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp b/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp index 2ae6a0e43..311901470 100644 --- a/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp +++ b/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp @@ -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();