trimming spaces around material names

This commit is contained in:
Vitaly Ovchinnikov
2015-12-14 08:32:09 +13:00
parent c9ef6132a8
commit af40c99a6a
3 changed files with 11 additions and 0 deletions

View File

@@ -284,6 +284,8 @@ void ObjFileMtlImporter::createMaterial()
}
}
name = trim_whitespaces(name);
std::map<std::string, ObjFile::Material*>::iterator it = m_pModel->m_MaterialMap.find( name );
if ( m_pModel->m_MaterialMap.end() == it) {
// New Material created