From a6a1d57781b0efbbd22fed7752206876777f520e Mon Sep 17 00:00:00 2001 From: kimmi Date: Sun, 9 Jan 2011 19:36:18 +0000 Subject: [PATCH] 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 --- code/ObjFileImporter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/ObjFileImporter.cpp b/code/ObjFileImporter.cpp index 16a0bf5ad..7554a17b5 100644 --- a/code/ObjFileImporter.cpp +++ b/code/ObjFileImporter.cpp @@ -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);