浏览代码

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.
Calvin Hsu 12 年之前
父节点
当前提交
c29109d1a4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/ObjFileParser.cpp

+ 1 - 1
code/ObjFileParser.cpp

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