normal per mesh, (not the whole scene)
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@158 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
31e2408732
commit
12d407c974
|
@ -322,7 +322,7 @@ void ObjFileImporter::createVertexArray(const ObjFile::Model* pModel,
|
||||||
pMesh->mVertices = new aiVector3D[ pMesh->mNumVertices ];
|
pMesh->mVertices = new aiVector3D[ pMesh->mNumVertices ];
|
||||||
|
|
||||||
// Allocate buffer for normal vectors
|
// Allocate buffer for normal vectors
|
||||||
if ( !pModel->m_Normals.empty() )
|
if ( !pModel->m_Normals.empty() && pObjMesh->m_hasNormals )
|
||||||
pMesh->mNormals = new aiVector3D[ pMesh->mNumVertices ];
|
pMesh->mNormals = new aiVector3D[ pMesh->mNumVertices ];
|
||||||
|
|
||||||
// Allocate buffer for texture coordinates
|
// Allocate buffer for texture coordinates
|
||||||
|
|
Loading…
Reference in New Issue