diff --git a/src/osg/Geometry.cpp b/src/osg/Geometry.cpp index 117e30a3d..c7e9faa96 100644 --- a/src/osg/Geometry.cpp +++ b/src/osg/Geometry.cpp @@ -2161,14 +2161,14 @@ unsigned int _computeNumberOfPrimtives(const osg::Geometry& geom) ++primItr) { if (primLength==0) totalNumberOfPrimitives += 1; - else totalNumberOfPrimitives = *primItr/primLength; + else totalNumberOfPrimitives += *primItr/primLength; } break; } default: { if (primLength==0) totalNumberOfPrimitives += 1; - else totalNumberOfPrimitives = primitiveset->getNumIndices()/primLength; + else totalNumberOfPrimitives += primitiveset->getNumIndices()/primLength; } } @@ -2314,7 +2314,7 @@ void _computeCorrectBindingsAndArraySizes(const osg::Geometry& geom, A& arrayDat { notify(WARN)<<"Warning: in osg::Geometry::computeCorrectBindingsAndArraySizes() "<