diff options
author | Hans Goudey <h.goudey@me.com> | 2022-09-13 16:35:48 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-09-13 16:35:58 +0300 |
commit | 8442b0ffc1df59cf6e557e7243b9197b2a898aa0 (patch) | |
tree | a51238290b0459d96376cec5832fe37145a1eb0f /source/blender/editors/sculpt_paint/paint_hide.c | |
parent | b6ebd5591c7f0e7037a2af66b5e1d96125834949 (diff) |
Fix T101027: Sculpt tools don't respect visibility after recent commit
Caused by b5f7af31d6d4, which exposed the fact that the PBVH wasn't
retrieving the updated hide status attributes if they were allocated in
sculpt mode. Previously the attributes were always allocated when
entering sculpt mode.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_hide.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_hide.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_hide.c b/source/blender/editors/sculpt_paint/paint_hide.c index c1289364fb2..2b80c62a0ba 100644 --- a/source/blender/editors/sculpt_paint/paint_hide.c +++ b/source/blender/editors/sculpt_paint/paint_hide.c @@ -383,6 +383,7 @@ static int hide_show_exec(bContext *C, wmOperator *op) * sculpt but it looks wrong when entering editmode otherwise). */ if (pbvh_type == PBVH_FACES) { BKE_mesh_flush_hidden_from_verts(me); + BKE_pbvh_update_hide_attributes_from_mesh(pbvh); } SCULPT_visibility_sync_all_vertex_to_face_sets(ob->sculpt); |