Removed unneccessary handling of BIND_PER_PRIMITIVE on output code

This commit is contained in:
Robert Osfield 2013-06-21 14:17:42 +00:00
parent 9d9543ca0a
commit 59d53b40a1

View File

@ -923,17 +923,6 @@ bool daeWriter::processGeometry( osg::Geometry *geom, domGeometry *geo, const st
verts,normals,colors,texcoords, verts,normals,colors,texcoords,
ncount,ccount); 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++; vcount++;
} }
indexBegin+=nbVerticesPerPoly; indexBegin+=nbVerticesPerPoly;
@ -1022,17 +1011,6 @@ bool daeWriter::processGeometry( osg::Geometry *geom, domGeometry *geo, const st
verts,normals,colors,texcoords, verts,normals,colors,texcoords,
ncount,ccount); 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++; vindex++;
} }
indexBegin+=nbVerticesPerPoly; indexBegin+=nbVerticesPerPoly;
@ -1122,17 +1100,6 @@ bool daeWriter::processGeometry( osg::Geometry *geom, domGeometry *geo, const st
verts,normals,colors,texcoords, verts,normals,colors,texcoords,
ncount,ccount); 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; primItrBegin+=nbVerticesPerPoly;
@ -1221,18 +1188,6 @@ bool daeWriter::processGeometry( osg::Geometry *geom, domGeometry *geo, const st
verts,normals,colors,texcoords, verts,normals,colors,texcoords,
ncount,ccount); 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; primItrBegin+=nbVerticesPerPoly;
#if ( _SECURE_SCL == 1 ) #if ( _SECURE_SCL == 1 )
@ -1323,17 +1278,6 @@ bool daeWriter::processGeometry( osg::Geometry *geom, domGeometry *geo, const st
verts,normals,colors,texcoords, verts,normals,colors,texcoords,
ncount,ccount); 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; primItrBegin+=nbVerticesPerPoly;
#if ( _SECURE_SCL == 1 ) #if ( _SECURE_SCL == 1 )