From 7295258d71f36f5300ade00a0a70e2773c818ebe Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 24 Jun 2014 11:24:13 +0000 Subject: [PATCH] Merged fix to merge geometries. git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14265 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgUtil/Optimizer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgUtil/Optimizer.cpp b/src/osgUtil/Optimizer.cpp index 004ae17fd..afb7edcc8 100644 --- a/src/osgUtil/Optimizer.cpp +++ b/src/osgUtil/Optimizer.cpp @@ -2022,7 +2022,7 @@ bool Optimizer::MergeGeometryVisitor::mergeGeode(osg::Geode& geode) } // push back if bellow the limit - if (numVertices<_targetMaximumNumberOfVertices) + if (eachGeom==duplicateList.end()) { if (duplicateList.size()>1) needToDoMerge = true; mergeList.push_back(duplicateList);