3DS: Pass name to Mesh constructor
parent
b580064414
commit
93fa373206
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue