obj: Fix tabs causing vertices to be skipped

If an obj vertex definition 'v' is followed by a tab instead of a space,
the vertex definition is skipped.
pull/138/head
Calvin Hsu 2013-09-30 15:12:56 -07:00
parent e8a23ccec9
commit c29109d1a4
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ void ObjFileParser::parseFile()
case 'v': // Parse a vertex texture coordinate case 'v': // Parse a vertex texture coordinate
{ {
++m_DataIt; ++m_DataIt;
if (*m_DataIt == ' ') if (*m_DataIt == ' ' || *m_DataIt == '\t')
{ {
// Read in vertex definition // Read in vertex definition
getVector3(m_pModel->m_Vertices); getVector3(m_pModel->m_Vertices);