Fix VC12 warning "empty but controlled statement found".

pull/502/head
Alexander Gessler 2015-02-15 22:20:34 +01:00 committed by Alexander Gessler
parent aae0f7e7b1
commit ce1302cd71
1 changed files with 5 additions and 3 deletions

View File

@ -1950,9 +1950,11 @@ void ColladaParser::ReadIndexData( Mesh* pMesh)
}
}
// small sanity check
if (primType != Prim_TriFans && primType != Prim_TriStrips)
ai_assert(actualPrimitives == numPrimitives);
#ifdef ASSIMP_BUILD_DEBUG
if (primType != Prim_TriFans && primType != Prim_TriStrips) {
ai_assert(actualPrimitives == numPrimitives)
}
#endif
// only when we're done reading all <p> tags (and thus know the final vertex count) can we commit the submesh
subgroup.mNumFaces = actualPrimitives;