Bladeren bron

Fix VC12 warning "empty but controlled statement found".

Alexander Gessler 10 jaren geleden
bovenliggende
commit
ce1302cd71
1 gewijzigde bestanden met toevoegingen van 5 en 3 verwijderingen
  1. 5 3
      code/ColladaParser.cpp

+ 5 - 3
code/ColladaParser.cpp

@@ -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
 	// only when we're done reading all <p> tags (and thus know the final vertex count) can we commit the submesh
 	subgroup.mNumFaces = actualPrimitives;
 	subgroup.mNumFaces = actualPrimitives;