From 7e72b747131bd63ccd223d7bc42daed4400908b2 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Thu, 16 Apr 2020 00:30:16 +0200 Subject: [PATCH] Fix T75766: Smooth mask using mesh vert indices direclty In the vertex iterator vd.index should always be used. I probably introduced this in a refactor. Reviewed By: jbakker Maniphest Tasks: T75766 Differential Revision: https://developer.blender.org/D7446 --- source/blender/editors/sculpt_paint/sculpt_smooth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/sculpt_paint/sculpt_smooth.c b/source/blender/editors/sculpt_paint/sculpt_smooth.c index de3211abe08..5410a85ed85 100644 --- a/source/blender/editors/sculpt_paint/sculpt_smooth.c +++ b/source/blender/editors/sculpt_paint/sculpt_smooth.c @@ -315,7 +315,7 @@ static void do_smooth_brush_bmesh_task_cb_ex(void *__restrict userdata, vd.index, tls->thread_id); if (smooth_mask) { - float val = SCULPT_neighbor_mask_average(ss, vd.vert_indices[vd.i]) - *vd.mask; + float val = SCULPT_neighbor_mask_average(ss, vd.index) - *vd.mask; val *= fade * bstrength; *vd.mask += val; CLAMP(*vd.mask, 0.0f, 1.0f);