More bugfixes from Jonathan:

- fixed material loading in OBJ importer
- Bugfix: loads obj files without texture coords correctly now

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@144 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
ulfjorensen
2008-09-16 13:53:10 +00:00
parent f784382a9f
commit b776f04251
2 changed files with 23 additions and 3 deletions

View File

@@ -240,8 +240,10 @@ void ObjFileParser::getFace()
if (iPos == 0)
{
//if there are no texturecoordinates in the obj file but normals
if (!vt && vn)
if (!vt && vn) {
iPos = 1;
iStep++;
}
}
iPos++;
}