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/editors/sculpt_paint/sculpt.c | |
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/editors/sculpt_paint/sculpt.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/sculpt.c | 3 |
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 89998f19476..85a300484c3 100644 --- a/source/blender/editors/sculpt_paint/sculpt.c +++ b/source/blender/editors/sculpt_paint/sculpt.c @@ -641,7 +641,6 @@ void SCULPT_visibility_sync_all_from_faces(Object *ob) } case PBVH_BMESH: { BMIter iter; - BMVert *v; BMFace *f; /* Hide all verts and edges attached to faces.*/ @@ -655,7 +654,7 @@ void SCULPT_visibility_sync_all_from_faces(Object *ob) /* Unhide verts and edges attached to visible faces. */ BM_ITER_MESH (f, &iter, ss->bm, BM_FACES_OF_MESH) { - if (!(BM_elem_flag_test(f, BM_ELEM_HIDDEN))) { + if (BM_elem_flag_test(f, BM_ELEM_HIDDEN)) { continue; } |