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