Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-09-27 22:49:40 +0300
committerHans Goudey <h.goudey@me.com>2022-09-27 22:50:07 +0300
commitf2bad0e49f8c36b36f32fb945517a44ca82e3ca1 (patch)
tree151febf3ac125bb34a836901edf515be4bdf143f
parentaa58f58e46c39750fd0bcc695ff2f70007de380c (diff)
Fix T101348: Sculpt smooth brush artifacts with hidden faces
The brush mixed up the vert and poly hide layers.
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c3
1 files changed, 1 insertions, 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;
}