Update XFileParser.cpp

Fix exception.
pull/2254/head
Kim Kulling 2019-06-10 20:32:56 +02:00 committed by GitHub
parent 6fc42cb898
commit 7e20356a20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 15 deletions

View File

@ -594,12 +594,7 @@ void XFileParser::ParseDataObjectMeshNormals( Mesh* pMesh)
}
// do not crah when no face definitions are there
if (numFaces == 0) {
//TestForSeparator();
CheckForClosingBrace();
return;
}
if (numFaces > 0) {
// normal face creation
pMesh->mNormFaces.resize( pMesh->mNormFaces.size() + numFaces );
for( unsigned int a = 0; a < numFaces; ++a ) {
@ -612,6 +607,7 @@ void XFileParser::ParseDataObjectMeshNormals( Mesh* pMesh)
TestForSeparator();
}
}
CheckForClosingBrace();
}