mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #109060: Crash with mask modifier smooth option
A mistake similar to the one fixed in 17aaff69c6.
Also remove the DNA deprecated define added in the last fix.
This commit is contained in:
parent
a474fdece5
commit
e516f25e8f
1 changed files with 1 additions and 3 deletions
|
|
@ -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()];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue