[Bf-blender-cvs] [7e72b747131] blender-v2.83-release: Fix T75766: Smooth mask using mesh vert indices direclty

Pablo Dobarro noreply at git.blender.org
Mon Apr 20 02:14:35 CEST 2020


Commit: 7e72b747131bd63ccd223d7bc42daed4400908b2
Author: Pablo Dobarro
Date:   Thu Apr 16 00:30:16 2020 +0200
Branches: blender-v2.83-release
https://developer.blender.org/rB7e72b747131bd63ccd223d7bc42daed4400908b2

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

===================================================================

M	source/blender/editors/sculpt_paint/sculpt_smooth.c

===================================================================

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);



More information about the Bf-blender-cvs mailing list