diff options
author | Joseph Eagar <joeedh@gmail.com> | 2022-10-04 03:17:50 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2022-10-04 03:19:50 +0300 |
commit | 22c3db72ca2f3d92852f463c184381ccf2998230 (patch) | |
tree | 1d0aebd9f7b912799ad8dbe1c2858aecc0a0fe59 /source/blender/blenkernel/intern/paint.cc | |
parent | 2cf21604c9130c56021525ed5af3f1fa59dcb19a (diff) |
Sculpt: Visibility bugfixes
* Unhide all is no longer part of face_set_change_visibility.
* Implemented a few visibility API methods for PBVH_BMESH
* Fixed bug with unhide all not freeing all multires grid_hidden
bitmaps.
Diffstat (limited to 'source/blender/blenkernel/intern/paint.cc')
-rw-r--r-- | source/blender/blenkernel/intern/paint.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/paint.cc b/source/blender/blenkernel/intern/paint.cc index ea4360b1626..9e3a044ff1c 100644 --- a/source/blender/blenkernel/intern/paint.cc +++ b/source/blender/blenkernel/intern/paint.cc @@ -2134,7 +2134,7 @@ void BKE_sculpt_sync_face_visibility_to_grids(Mesh *mesh, SubdivCCG *subdiv_ccg) ".hide_poly", ATTR_DOMAIN_FACE, false); if (hide_poly.is_single() && !hide_poly.get_internal_single()) { /* Nothing is hidden, so we can just remove all visibility bitmaps. */ - for (const int i : hide_poly.index_range()) { + for (const int i : IndexRange(subdiv_ccg->num_grids)) { BKE_subdiv_ccg_grid_hidden_free(subdiv_ccg, i); } return; |