From f2bad0e49f8c36b36f32fb945517a44ca82e3ca1 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Tue, 27 Sep 2022 14:49:40 -0500 Subject: Fix T101348: Sculpt smooth brush artifacts with hidden faces The brush mixed up the vert and poly hide layers. --- source/blender/editors/sculpt_paint/sculpt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c index a300edff042..114c2c3839a 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -791,10 +791,9 @@ static void sculpt_vertex_neighbors_get_faces(SculptSession *ss, iter->capacity = SCULPT_VERTEX_NEIGHBOR_FIXED_CAPACITY; iter->neighbors = iter->neighbors_fixed; iter->neighbor_indices = iter->neighbor_indices_fixed; - const bool *hide_poly = BKE_pbvh_get_vert_hide(ss->pbvh); for (int i = 0; i < vert_map->count; i++) { - if (hide_poly && hide_poly[vert_map->indices[i]]) { + if (ss->hide_poly && ss->hide_poly[vert_map->indices[i]]) { /* Skip connectivity from hidden faces. */ continue; } -- cgit v1.2.3