Forráskód Böngészése

- Bugfix 2824877: Avoid handling of negative ids in face definitions.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@462 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
kimmi 16 éve
szülő
commit
af725fd545
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      code/ObjFileParser.cpp

+ 2 - 2
code/ObjFileParser.cpp

@@ -302,10 +302,10 @@ void ObjFileParser::getFace()
 			//OBJ USES 1 Base ARRAYS!!!!
 			const int iVal = atoi( pPtr );
 			int tmp = iVal;
-			while ((tmp = tmp / 10)!=0)
+			while ( ( tmp = tmp / 10 )!=0 )
 				++iStep;
 
-			if ( 0 != iVal )
+			if ( iVal > 0 )
 			{
 				// Store parsed index
 				if ( 0 == iPos )