From 59d53b40a1717ead1bfcef2571a9faeb7a440891 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 21 Jun 2013 14:17:42 +0000 Subject: [PATCH] Removed unneccessary handling of BIND_PER_PRIMITIVE on output code --- src/osgPlugins/dae/daeWGeometry.cpp | 56 ----------------------------- 1 file changed, 56 deletions(-) diff --git a/src/osgPlugins/dae/daeWGeometry.cpp b/src/osgPlugins/dae/daeWGeometry.cpp index 6fe3a41d4..446c46153 100644 --- a/src/osgPlugins/dae/daeWGeometry.cpp +++ b/src/osgPlugins/dae/daeWGeometry.cpp @@ -923,17 +923,6 @@ bool daeWriter::processGeometry( osg::Geometry *geom, domGeometry *geo, const st verts,normals,colors,texcoords, ncount,ccount); - if ( vcount>0 && ((vcount % primLength) == 0) ) - { - if ( geom->getNormalBinding() == osg::Geometry::BIND_PER_PRIMITIVE ) - { - ncount++; - } - if ( geom->getColorBinding() == osg::Geometry::BIND_PER_PRIMITIVE ) - { - ccount++; - } - } vcount++; } indexBegin+=nbVerticesPerPoly; @@ -1022,17 +1011,6 @@ bool daeWriter::processGeometry( osg::Geometry *geom, domGeometry *geo, const st verts,normals,colors,texcoords, ncount,ccount); - if ( primCount>0 && ((primCount % localPrimLength) == 0) ) - { - if ( geom->getNormalBinding() == osg::Geometry::BIND_PER_PRIMITIVE ) - { - ncount++; - } - if ( geom->getColorBinding() == osg::Geometry::BIND_PER_PRIMITIVE ) - { - ccount++; - } - } vindex++; } indexBegin+=nbVerticesPerPoly; @@ -1122,17 +1100,6 @@ bool daeWriter::processGeometry( osg::Geometry *geom, domGeometry *geo, const st verts,normals,colors,texcoords, ncount,ccount); - if ( primCount>0 && ((primCount % primLength) == 0) ) - { - if ( geom->getNormalBinding() == osg::Geometry::BIND_PER_PRIMITIVE ) - { - ncount++; - } - if ( geom->getColorBinding() == osg::Geometry::BIND_PER_PRIMITIVE ) - { - ccount++; - } - } } primItrBegin+=nbVerticesPerPoly; @@ -1221,18 +1188,6 @@ bool daeWriter::processGeometry( osg::Geometry *geom, domGeometry *geo, const st verts,normals,colors,texcoords, ncount,ccount); - if ( primCount>0 && ((primCount % primLength) == 0) ) - { - if ( geom->getNormalBinding() == osg::Geometry::BIND_PER_PRIMITIVE ) - { - ncount++; - } - if ( geom->getColorBinding() == osg::Geometry::BIND_PER_PRIMITIVE ) - { - ccount++; - } - } - } primItrBegin+=nbVerticesPerPoly; #if ( _SECURE_SCL == 1 ) @@ -1323,17 +1278,6 @@ bool daeWriter::processGeometry( osg::Geometry *geom, domGeometry *geo, const st verts,normals,colors,texcoords, ncount,ccount); - if ( primCount>0 && ((primCount % primLength) == 0) ) - { - if ( geom->getNormalBinding() == osg::Geometry::BIND_PER_PRIMITIVE ) - { - ncount++; - } - if ( geom->getColorBinding() == osg::Geometry::BIND_PER_PRIMITIVE ) - { - ccount++; - } - } } primItrBegin+=nbVerticesPerPoly; #if ( _SECURE_SCL == 1 )