Browse Source

Added loading of mesh name from Collada mesh to aiMesh struct.

Sherief Farouk 12 years ago
parent
commit
57e34cc90a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      code/ColladaLoader.cpp

+ 2 - 0
code/ColladaLoader.cpp

@@ -541,6 +541,8 @@ aiMesh* ColladaLoader::CreateMesh( const ColladaParser& pParser, const Collada::
 	const Collada::Controller* pSrcController, size_t pStartVertex, size_t pStartFace)
 {
 	aiMesh* dstMesh = new aiMesh;
+    
+    dstMesh->mName = pSrcMesh->mName;
 
 	// count the vertices addressed by its faces
 	const size_t numVertices = std::accumulate( pSrcMesh->mFaceSize.begin() + pStartFace,