BUGFIX : Set the object name in assimp-node instance.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@888 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
kimmi 2011-01-09 19:36:18 +00:00
parent cef429bb70
commit a6a1d57781
1 changed files with 3 additions and 1 deletions

View File

@ -183,9 +183,11 @@ aiNode *ObjFileImporter::createNodes(const ObjFile::Model* pModel, const ObjFile
if ( NULL == pObject )
return NULL;
// Store older mesh size to be able to computate mesh offsets for new mesh instances
// Store older mesh size to be able to computes mesh offsets for new mesh instances
const size_t oldMeshSize = MeshArray.size();
aiNode *pNode = new aiNode;
pNode->mName = pObject->m_strObjName;
if (pParent != NULL)
appendChildToParentNode(pParent, pNode);