OBJ: Support spaces in material names, fixes #545.

Adding test file.
This commit is contained in:
Alexander Gessler
2015-05-10 23:50:18 +02:00
committed by Alexander Gessler
parent 67fb135ce8
commit faea2ecccc
4 changed files with 105 additions and 10 deletions

View File

@@ -469,7 +469,7 @@ void ObjFileParser::getMaterialDesc()
return;
char *pStart = &(*m_DataIt);
while( m_DataIt != m_DataItEnd && !IsSpaceOrNewLine( *m_DataIt ) ) {
while( m_DataIt != m_DataItEnd && !IsLineEnd( *m_DataIt ) ) {
++m_DataIt;
}