3DS: Initialize Material name in initializer list

pull/1732/head
Turo Lamminen 2018-01-23 20:41:26 +02:00
parent 4acd96d405
commit e6ff15d201
1 changed files with 2 additions and 2 deletions

View File

@ -376,7 +376,8 @@ struct Material
//! Constructor with explicit name //! Constructor with explicit name
explicit Material(const std::string &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 ) ) , mSpecularExponent ( ai_real( 0.0 ) )
, mShininessStrength ( ai_real( 1.0 ) ) , mShininessStrength ( ai_real( 1.0 ) )
, mShading(Discreet3DS::Gouraud) , mShading(Discreet3DS::Gouraud)
@ -384,7 +385,6 @@ struct Material
, mBumpHeight ( ai_real( 1.0 ) ) , mBumpHeight ( ai_real( 1.0 ) )
, mTwoSided (false) , mTwoSided (false)
{ {
mName = name;
} }