Updated handling of unsupported primitive modes

Added a warning message and return false if prim->mMode is not of expected types.
master
Beq 2024-07-19 07:03:12 +01:00
parent afca69a93e
commit b2e4ccbf26
1 changed files with 7 additions and 0 deletions

View File

@ -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)
{