Fix (unreported) crash in Array modifier in case of empty mesh.

Return early the input mesh in case it is fully empty.
This commit is contained in:
2023-03-09 16:36:56 +01:00
parent 15dd622a63
commit 8b2556e8d8

View File

@@ -369,8 +369,12 @@ static void mesh_merge_transform(Mesh *result,
static Mesh *arrayModifier_doArray(ArrayModifierData *amd,
const ModifierEvalContext *ctx,
const Mesh *mesh)
Mesh *mesh)
{
if (mesh->totvert == 0) {
return mesh;
}
MEdge *me;
MLoop *ml;
MPoly *mp;