diff --git a/code/3DSConverter.cpp b/code/3DSConverter.cpp index af62e9f3c..9a437e33f 100644 --- a/code/3DSConverter.cpp +++ b/code/3DSConverter.cpp @@ -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");