Page MenuHome
Paste P3186

T101027_snippet
ActivePublic

Authored by Philipp Oeser (lichtwerk) on Sep 13 2022, 10:42 AM.
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index 65e69bd8761..ef75a0b357c 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -837,7 +837,7 @@ 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);
+ const bool *hide_poly = BKE_pbvh_get_poly_hide(ss->pbvh);
for (int i = 0; i < ss->pmap[vertex.i].count; i++) {
if (hide_poly && hide_poly[vert_map->indices[i]]) {