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-9d2fd5bffc1fpull/1/head
parent
cef429bb70
commit
a6a1d57781
|
@ -183,9 +183,11 @@ aiNode *ObjFileImporter::createNodes(const ObjFile::Model* pModel, const ObjFile
|
||||||
if ( NULL == pObject )
|
if ( NULL == pObject )
|
||||||
return NULL;
|
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();
|
const size_t oldMeshSize = MeshArray.size();
|
||||||
aiNode *pNode = new aiNode;
|
aiNode *pNode = new aiNode;
|
||||||
|
|
||||||
|
pNode->mName = pObject->m_strObjName;
|
||||||
|
|
||||||
if (pParent != NULL)
|
if (pParent != NULL)
|
||||||
appendChildToParentNode(pParent, pNode);
|
appendChildToParentNode(pParent, pNode);
|
||||||
|
|
Loading…
Reference in New Issue