Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed check against totaly number of vertices

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14262 16af8721-9629-0410-8352-f15c8da7e697
  • Loading branch information...
commit aff58b8c879cbdf1a98bafac8fd26c8edf4a078a 1 parent 0842a55
Robert OSFIELD authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/osgUtil/Optimizer.cpp
View
4 src/osgUtil/Optimizer.cpp
@@ -2008,10 +2008,10 @@ bool Optimizer::MergeGeometryVisitor::mergeGeode(osg::Geode& geode)
unsigned int numVertices(duplicateList.front()->getVertexArray() ? duplicateList.front()->getVertexArray()->getNumElements() : 0);
DuplicateList::iterator eachGeom(duplicateList.begin()+1);
// until all geometries have been checked or _targetMaximumNumberOfVertices is reached
- for (;eachGeom!=duplicateList.end(); ++eachGeom)
+ for(;eachGeom!=duplicateList.end(); ++eachGeom)
{
unsigned int numAddVertices((*eachGeom)->getVertexArray() ? (*eachGeom)->getVertexArray()->getNumElements() : 0);
- if (numVertices+numAddVertices<_targetMaximumNumberOfVertices)
+ if ((numVertices+numAddVertices)>_targetMaximumNumberOfVertices)
{
break;
}
Please sign in to comment.
Something went wrong with that request. Please try again.