3DS: Pass default material name to constructor instead of changing after the fact

pull/1732/head
Turo Lamminen 2018-01-23 20:36:05 +02:00
parent 10246bf052
commit dd7035372d
1 changed files with 1 additions and 2 deletions

View File

@ -127,9 +127,8 @@ void Discreet3DSImporter::ReplaceDefaultMaterial()
if (cnt && idx == mScene->mMaterials.size())
{
// We need to create our own default material
D3DS::Material sMat;
D3DS::Material sMat("%%%DEFAULT");
sMat.mDiffuse = aiColor3D(0.3f,0.3f,0.3f);
sMat.mName = "%%%DEFAULT";
mScene->mMaterials.push_back(sMat);
DefaultLogger::get()->info("3DS: Generating default material");