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
This commit is contained in:
parent
44a386b88c
commit
7e72b74713
Notes:
blender-bot
2023-07-10 10:12:37 +02:00
Referenced by issue #75766, Crash in sculpt mode with dynotop on and attempting to smooth mask.
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue