prevent accidental lower casing material names in ReplaceDefaultMaterial

pull/2726/head
Rem 2019-10-25 10:18:27 +03:00
parent bd25cc7c8f
commit 5f58ef82b9
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ void Discreet3DSImporter::ReplaceDefaultMaterial()
unsigned int idx( NotSet );
for (unsigned int i = 0; i < mScene->mMaterials.size();++i)
{
std::string &s = mScene->mMaterials[i].mName;
std::string s = mScene->mMaterials[i].mName;
for ( std::string::iterator it = s.begin(); it != s.end(); ++it ) {
*it = static_cast< char >( ::tolower( *it ) );
}