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

@@ -473,6 +473,7 @@ void ObjFileParser::getMaterialDesc()
// Get name
std::string strName(pStart, &(*m_DataIt));
strName = trim_whitespaces(strName);
if (strName.empty())
skip = true;