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-9d2fd5bffc1fpull/1/head
parent
f57ef267bd
commit
ddbb8ab856
|
@ -616,13 +616,14 @@ void XFileParser::ParseDataObjectMeshVertexColors( Mesh* pMesh)
|
||||||
ThrowException( "Vertex color index out of bounds");
|
ThrowException( "Vertex color index out of bounds");
|
||||||
|
|
||||||
colors[index] = ReadRGBA();
|
colors[index] = ReadRGBA();
|
||||||
// HACK: (thom) Maxon Cinema XPort plugin puts a third separator here. Ignore gracefully
|
// HACK: (thom) Maxon Cinema XPort plugin puts a third separator here, kwxPort puts a comma.
|
||||||
if( !mIsBinaryFormat)
|
// Ignore gracefully.
|
||||||
{
|
if( !mIsBinaryFormat)
|
||||||
FindNextNoneWhiteSpace();
|
{
|
||||||
if( *P == ';')
|
FindNextNoneWhiteSpace();
|
||||||
P++;
|
if( *P == ';' || *P == ',')
|
||||||
}
|
P++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckForClosingBrace();
|
CheckForClosingBrace();
|
||||||
|
|
Loading…
Reference in New Issue