Off-Importer: introduce unittest.

This commit is contained in:
Kim Kulling
2018-12-03 21:24:06 +01:00
parent bb66af544a
commit ce91f5c888
5 changed files with 76 additions and 6 deletions

View File

@@ -294,7 +294,7 @@ void OFFImporter::InternReadFile( const std::string& pFile, aiScene* pScene, IOS
// load faces with their indices
faces = mesh->mFaces;
for (unsigned int i = 0; i < numFaces; ++i ) {
for (unsigned int i = 0; i < numFaces; ) {
if(!GetNextLine(buffer,line)) {
ASSIMP_LOG_ERROR("OFF: The number of faces in the header is incorrect");
break;