Fixing compilation on gcc 4.5.2

pull/13/head
Rodrigo Benenson 2012-12-07 21:57:39 +01:00
parent f07f520798
commit 7b253016b7
1 changed files with 2 additions and 2 deletions

View File

@ -142,8 +142,8 @@ void TempMesh::RemoveDegenerates()
bool drop = false;
size_t inor = 0;
std::vector<IfcVector3>::const_iterator vit = verts.begin();
for (std::vector<unsigned int>::const_iterator it = vertcnt.begin(); it != vertcnt.end(); ++inor) {
std::vector<IfcVector3>::iterator vit = verts.begin();
for (std::vector<unsigned int>::iterator it = vertcnt.begin(); it != vertcnt.end(); ++inor) {
const unsigned int pcount = *it;
if (normals[inor].SquareLength() < 1e-5f) {