Fix T72729: Mask Modifier Loose Edges Not Shown

When using the mask modifier loose edges could be added to the mesh.
These edges weren't marked as loose edges and wasn't picked up by other
areas of blender.

This fix recalculates the loose edges so they have the correct flag
`ME_LOOSE_EDGE`.

Reviewed By: Sybren Stüvel

Differential Revision: https://developer.blender.org/D7766
This commit is contained in:
Jeroen Bakker 2020-05-18 11:11:13 +02:00
parent b96ccb5126
commit cddfa7a449
Notes: blender-bot 2023-02-14 09:48:25 +01:00
Referenced by issue #72729, Unable to display edit cage for loose edges created by a Mask modifier
1 changed files with 1 additions and 0 deletions

View File

@ -366,6 +366,7 @@ static Mesh *applyModifier(ModifierData *md, const ModifierEvalContext *ctx, Mes
copy_masked_polys_to_new_mesh(
*mesh, *result, vertex_map, edge_map, masked_poly_indices, new_loop_starts);
BKE_mesh_calc_edges_loose(result);
/* Tag to recalculate normals later. */
result->runtime.cd_dirty_vert |= CD_MASK_NORMAL;