[Bf-blender-cvs] [f2bad0e49f8] master: Fix T101348: Sculpt smooth brush artifacts with hidden faces
Hans Goudey
noreply at git.blender.org
Tue Sep 27 22:01:49 CEST 2022
Commit: f2bad0e49f8c36b36f32fb945517a44ca82e3ca1
Author: Hans Goudey
Date: Tue Sep 27 14:49:40 2022 -0500
Branches: master
https://developer.blender.org/rBf2bad0e49f8c36b36f32fb945517a44ca82e3ca1
Fix T101348: Sculpt smooth brush artifacts with hidden faces
The brush mixed up the vert and poly hide layers.
===================================================================
M source/blender/editors/sculpt_paint/sculpt.c
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list