Updated handling of unsupported primitive modes
Added a warning message and return false if prim->mMode is not of expected types.master
parent
afca69a93e
commit
b2e4ccbf26
|
|
@ -134,6 +134,13 @@ struct MikktMesh
|
|||
idx[1] = tri_idx + 1;
|
||||
idx[2] = tri_idx + 2;
|
||||
}
|
||||
// <FS:Beq> unknown mode leaves idx uninitialised
|
||||
else
|
||||
{
|
||||
LL_WARNS("GLTF") << "Unsupported primitive mode for conversion to triangles: " << (S32) prim->mMode << LL_ENDL;
|
||||
return false;
|
||||
}
|
||||
// </FS:Beq>
|
||||
|
||||
if (indexed)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue