Fix T95212: Mirror modifier normals crash

The vertex and face normals from the input mesh
were used to calculate the normals on the result,
which could cause a crash because the result should
be about twice as large.

Also remove an unnecessary dirty tag, since it is handled
automatically when creating a new mesh or in the case
of the mirror modifier, when calculating the new custom
face corner normals.
This commit is contained in:
2022-01-27 11:02:10 -06:00
parent d7ac659e02
commit 834b966b41
2 changed files with 2 additions and 5 deletions

View File

@@ -120,9 +120,6 @@ static Mesh *modifyMesh(ModifierData *md, const ModifierEvalContext *ctx, Mesh *
result = mirrorModifier__doMirror(mmd, ctx->object, mesh);
if (result != mesh) {
BKE_mesh_normals_tag_dirty(result);
}
return result;
}