[Bf-blender-cvs] [473df37134a] master: Sculpt: Fix T101729: Automasking crash in elastic deform brush

Joseph Eagar noreply at git.blender.org
Mon Oct 10 22:06:42 CEST 2022


Commit: 473df37134aa59339557fead150053c9b9ac97ef
Author: Joseph Eagar
Date:   Mon Oct 10 13:05:43 2022 -0700
Branches: master
https://developer.blender.org/rB473df37134aa59339557fead150053c9b9ac97ef

Sculpt: Fix T101729: Automasking crash in elastic deform brush

Was missing a call to SCULPT_automasking_node_update.

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

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

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

diff --git a/source/blender/editors/sculpt_paint/sculpt_brush_types.c b/source/blender/editors/sculpt_paint/sculpt_brush_types.c
index 041efbb357c..92541d10a59 100644
--- a/source/blender/editors/sculpt_paint/sculpt_brush_types.c
+++ b/source/blender/editors/sculpt_paint/sculpt_brush_types.c
@@ -2149,6 +2149,8 @@ static void do_elastic_deform_brush_task_cb_ex(void *__restrict userdata,
 
   BKE_pbvh_vertex_iter_begin (ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) {
     SCULPT_orig_vert_data_update(&orig_data, &vd);
+    SCULPT_automasking_node_update(ss, &automask_data, &vd);
+
     float final_disp[3];
     switch (brush->elastic_deform_type) {
       case BRUSH_ELASTIC_DEFORM_GRAB:



More information about the Bf-blender-cvs mailing list