Added mesh name importing to .X ascii format.

This commit is contained in:
Henry Stratmann III
2015-06-20 17:35:30 -05:00
parent daabf4bf86
commit 328cae8a81
3 changed files with 6 additions and 2 deletions

View File

@@ -294,6 +294,9 @@ void XFileImporter::CreateMeshes( aiScene* pScene, aiNode* pNode, const std::vec
mesh->mNumFaces = (unsigned int)faces.size();
mesh->mFaces = new aiFace[mesh->mNumFaces];
// name
mesh->mName.Set(sourceMesh->mName);
// normals?
if( sourceMesh->mNormals.size() > 0)
mesh->mNormals = new aiVector3D[numVertices];