diff --git a/code/3DSLoader.cpp b/code/3DSLoader.cpp index b5534f157..d003fec4a 100644 --- a/code/3DSLoader.cpp +++ b/code/3DSLoader.cpp @@ -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;