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

pull/78/head
Sherief Farouk 2013-08-15 00:14:19 -04:00
parent a540c6255c
commit 57e34cc90a
1 changed files with 2 additions and 0 deletions

View File

@ -542,6 +542,8 @@ aiMesh* ColladaLoader::CreateMesh( const ColladaParser& pParser, const Collada::
{
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,
pSrcMesh->mFaceSize.begin() + pStartFace + pSubMesh.mNumFaces, 0);