From 991a35b844bc3b9366551ec23d3a38ee614c1048 Mon Sep 17 00:00:00 2001 From: Joseph Eagar Date: Fri, 30 Sep 2022 15:32:01 -0700 Subject: Sculpt: fix crash in relax face sets brush --- source/blender/editors/sculpt_paint/sculpt_face_set.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/editors/sculpt_paint/sculpt_face_set.cc b/source/blender/editors/sculpt_paint/sculpt_face_set.cc index 962ecf42691..fb8d72f02bd 100644 --- a/source/blender/editors/sculpt_paint/sculpt_face_set.cc +++ b/source/blender/editors/sculpt_paint/sculpt_face_set.cc @@ -217,6 +217,8 @@ static void do_relax_face_sets_brush_task_cb_ex(void *__restrict userdata, data->ob, ss, ss->cache->automasking, &automask_data, data->nodes[n]); BKE_pbvh_vertex_iter_begin (ss->pbvh, data->nodes[n], vd, PBVH_ITER_UNIQUE) { + SCULPT_automasking_node_update(ss, &automask_data, &vd); + if (!sculpt_brush_test_sq_fn(&test, vd.co)) { continue; } -- cgit v1.2.3