2
0
Эх сурвалжийг харах

Bugfix: XFiles exported from kwxPort with vertex colors load correctly now.

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@363 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
ulfjorensen 16 жил өмнө
parent
commit
ddbb8ab856
1 өөрчлөгдсөн 8 нэмэгдсэн , 7 устгасан
  1. 8 7
      code/XFileParser.cpp

+ 8 - 7
code/XFileParser.cpp

@@ -616,13 +616,14 @@ void XFileParser::ParseDataObjectMeshVertexColors( Mesh* pMesh)
 			ThrowException( "Vertex color index out of bounds");
 
 		colors[index] = ReadRGBA();
-    // HACK: (thom) Maxon Cinema XPort plugin puts a third separator here. Ignore gracefully
-    if( !mIsBinaryFormat)
-    {
-      FindNextNoneWhiteSpace();
-      if( *P == ';')
-        P++;
-    }
+		// HACK: (thom) Maxon Cinema XPort plugin puts a third separator here, kwxPort puts a comma.
+		// Ignore gracefully.
+		if( !mIsBinaryFormat)
+		{
+			FindNextNoneWhiteSpace();
+			if( *P == ';' || *P == ',')
+				P++;
+		}
 	}
 
 	CheckForClosingBrace();