From e516f25e8f79ae15debf0029aeb9de6acb6768ea Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Mon, 19 Jun 2023 22:27:39 -0400 Subject: [PATCH] Fix #109060: Crash with mask modifier smooth option A mistake similar to the one fixed in 17aaff69c68b7903b905. Also remove the DNA deprecated define added in the last fix. --- source/blender/modifiers/intern/MOD_mask.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/blender/modifiers/intern/MOD_mask.cc b/source/blender/modifiers/intern/MOD_mask.cc index 8091b7bc31a..c9ef85d4076 100644 --- a/source/blender/modifiers/intern/MOD_mask.cc +++ b/source/blender/modifiers/intern/MOD_mask.cc @@ -5,8 +5,6 @@ * \ingroup modifiers */ -#define DNA_DEPRECATED_ALLOW - #include "MEM_guardedalloc.h" #include "BLI_utildefines.h" @@ -296,7 +294,7 @@ static void compute_interpolated_polys(const Mesh *mesh, } if (0 < in_count && in_count < poly_src.size()) { /* Ring search starting at a vertex which is not included in the mask. */ - int last_corner_vert = corner_verts[start]; + int last_corner_vert = poly_verts_src[start]; bool v_loop_in_mask_last = vertex_mask[last_corner_vert]; for (const int j : poly_verts_src.index_range()) { const int corner_vert = poly_verts_src[(start + 1 + j) % poly_src.size()];