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/blenkernel/BKE_pbvh.h | |
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/blenkernel/BKE_pbvh.h')
-rw-r--r-- | source/blender/blenkernel/BKE_pbvh.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_pbvh.h b/source/blender/blenkernel/BKE_pbvh.h index 403f3a31ba0..6a194698bd8 100644 --- a/source/blender/blenkernel/BKE_pbvh.h +++ b/source/blender/blenkernel/BKE_pbvh.h @@ -491,6 +491,12 @@ void BKE_pbvh_grids_update(PBVH *pbvh, void BKE_pbvh_subdiv_cgg_set(PBVH *pbvh, struct SubdivCCG *subdiv_ccg); void BKE_pbvh_face_sets_set(PBVH *pbvh, int *face_sets); +/** + * If an operation causes the hide status stored in the mesh to change, this must be called + * to update the references to those attributes, since they are only added when necessary. + */ +void BKE_pbvh_update_hide_attributes_from_mesh(PBVH *pbvh); + void BKE_pbvh_face_sets_color_set(PBVH *pbvh, int seed, int color_default); void BKE_pbvh_respect_hide_set(PBVH *pbvh, bool respect_hide); |