Browse Source

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
kimmi 14 năm trước cách đây
mục cha
commit
a6a1d57781
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      code/ObjFileImporter.cpp

+ 3 - 1
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);