OBJReader: Fixed error with some material files containing tabs.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@271 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Mike Kremer
2010-02-23 12:04:15 +00:00
parent fac109fa4b
commit 12638100b0

View File

@@ -172,7 +172,7 @@ read_material(std::fstream& _in)
stream >> keyWrd;
if( isspace(line[0]) || line[0] == '#' )
if( ( isspace(line[0]) && line[0] != 0x09 /*tab*/ ) || line[0] == '#' )
{
if (indef && !key.empty() && mat.is_valid())
{