3DS: Pass name to Mesh constructor

pull/1745/head
Turo Lamminen 2018-01-27 17:15:58 +02:00
parent b580064414
commit 93fa373206
1 changed files with 1 additions and 5 deletions

View File

@ -402,11 +402,7 @@ void Discreet3DSImporter::ParseChunk(const char* name, unsigned int num)
case Discreet3DS::CHUNK_TRIMESH: case Discreet3DS::CHUNK_TRIMESH:
{ {
// this starts a new triangle mesh // this starts a new triangle mesh
mScene->mMeshes.push_back(D3DS::Mesh()); mScene->mMeshes.push_back(D3DS::Mesh(std::string(name, num)));
D3DS::Mesh& m = mScene->mMeshes.back();
// Setup the name of the mesh
m.mName = std::string(name, num);
// Read mesh chunks // Read mesh chunks
ParseMeshChunk(); ParseMeshChunk();