3DS: Pass default material name to Material constructor

This commit is contained in:
Turo Lamminen
2018-01-23 20:29:46 +02:00
parent f2ec3eeeb8
commit 10246bf052

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;