From 12d407c974637d871d0da0a1c4bffa156e36dfc6 Mon Sep 17 00:00:00 2001 From: cgmelt Date: Mon, 22 Sep 2008 08:15:18 +0000 Subject: [PATCH] normal per mesh, (not the whole scene) git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@158 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/ObjFileImporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ObjFileImporter.cpp b/code/ObjFileImporter.cpp index b9afb6933..80aece714 100644 --- a/code/ObjFileImporter.cpp +++ b/code/ObjFileImporter.cpp @@ -322,7 +322,7 @@ void ObjFileImporter::createVertexArray(const ObjFile::Model* pModel, pMesh->mVertices = new aiVector3D[ pMesh->mNumVertices ]; // Allocate buffer for normal vectors - if ( !pModel->m_Normals.empty() ) + if ( !pModel->m_Normals.empty() && pObjMesh->m_hasNormals ) pMesh->mNormals = new aiVector3D[ pMesh->mNumVertices ]; // Allocate buffer for texture coordinates