diff --git a/code/ObjFileImporter.cpp b/code/ObjFileImporter.cpp index a3610c7b9..864ed4fff 100644 --- a/code/ObjFileImporter.cpp +++ b/code/ObjFileImporter.cpp @@ -342,7 +342,7 @@ void ObjFileImporter::createVertexArray(const ObjFile::Model* pModel, pMesh->mVertices[ newIndex ] = pModel->m_Vertices[ vertex ]; // Copy all normals - if ( !pSourceFace->m_pNormals->empty() ) + if ( !pSourceFace->m_pNormals->empty() && !pModel->m_Normals.empty()) { const unsigned int normal = pSourceFace->m_pNormals->at( vertexIndex ); if (normal >= pModel->m_Normals.size()) {