From e6ff15d20146a87a807684900e4fb71c38336873 Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 23 Jan 2018 20:41:26 +0200 Subject: [PATCH] 3DS: Initialize Material name in initializer list --- code/3DSHelper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/3DSHelper.h b/code/3DSHelper.h index 229d2ae20..9091b990f 100644 --- a/code/3DSHelper.h +++ b/code/3DSHelper.h @@ -376,7 +376,8 @@ struct Material //! Constructor with explicit name explicit Material(const std::string &name) - : mDiffuse ( ai_real( 0.6 ), ai_real( 0.6 ), ai_real( 0.6 ) ) // FIX ... we won't want object to be black + : mName(name) + , mDiffuse ( ai_real( 0.6 ), ai_real( 0.6 ), ai_real( 0.6 ) ) // FIX ... we won't want object to be black , mSpecularExponent ( ai_real( 0.0 ) ) , mShininessStrength ( ai_real( 1.0 ) ) , mShading(Discreet3DS::Gouraud) @@ -384,7 +385,6 @@ struct Material , mBumpHeight ( ai_real( 1.0 ) ) , mTwoSided (false) { - mName = name; }