3DS: Pass default material name to Material constructor

pull/1732/head
Turo Lamminen 2018-01-23 20:29:46 +02:00
parent f2ec3eeeb8
commit 10246bf052
1 changed files with 1 additions and 1 deletions

View File

@ -346,7 +346,7 @@ void Discreet3DSImporter::ParseObjectChunk()
case Discreet3DS::CHUNK_MAT_MATERIAL:
// Add a new material to the list
mScene->mMaterials.push_back(D3DS::Material());
mScene->mMaterials.push_back(D3DS::Material(std::string("UNNAMED_" + std::to_string(mScene->mMaterials.size()))));
ParseMaterialChunk();
break;