Merged fix to merge geometries.

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14265 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2014-06-24 11:24:13 +00:00
parent 4ec4e88f85
commit 7295258d71

View File

@ -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);