From 57e34cc90a84b3179e67d4e41839771b5fb086c3 Mon Sep 17 00:00:00 2001 From: Sherief Farouk Date: Thu, 15 Aug 2013 00:14:19 -0400 Subject: [PATCH] Added loading of mesh name from Collada mesh to aiMesh struct. --- code/ColladaLoader.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/ColladaLoader.cpp b/code/ColladaLoader.cpp index a97ea2c6a..c40d3b8f2 100644 --- a/code/ColladaLoader.cpp +++ b/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,