Fix to merge Geometries.

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.2@14266 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2014-06-24 11:24:48 +00:00
parent a6939bc46f
commit cb3ce747ca

View File

@@ -2017,7 +2017,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);