Skip to content

Commit

Permalink
Merge pull request assimp#2655 from PascalGilbraith/issue_2603
Browse files Browse the repository at this point in the history
Issue 2603
  • Loading branch information
kimkulling authored Sep 16, 2019
2 parents ab3528f + 7f79189 commit 7f3b33d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/X/XFileParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,11 +596,11 @@ void XFileParser::ParseDataObjectMeshNormals( Mesh* pMesh)
// do not crah when no face definitions are there
if (numFaces > 0) {
// normal face creation
pMesh->mNormFaces.resize( pMesh->mNormFaces.size() + numFaces );
pMesh->mNormFaces.resize( numFaces );
for( unsigned int a = 0; a < numFaces; ++a ) {
unsigned int numIndices = ReadInt();
pMesh->mNormFaces.push_back( Face() );
Face& face = pMesh->mNormFaces.back();
pMesh->mNormFaces[a] = Face();
Face& face = pMesh->mNormFaces[a];
for( unsigned int b = 0; b < numIndices; ++b ) {
face.mIndices.push_back( ReadInt());
}
Expand Down

0 comments on commit 7f3b33d

Please sign in to comment.