diff options
author | Peter Kim <pk15950@gmail.com> | 2021-06-19 12:18:39 +0300 |
---|---|---|
committer | Peter Kim <pk15950@gmail.com> | 2021-06-19 12:18:39 +0300 |
commit | e5089d3924adeb6ba7db538ce560766de38c5bb9 (patch) | |
tree | 2d8b292a353f997f6b7706e32363f02cf49332c7 /source/blender/editors/space_view3d/view3d_select.c | |
parent | 65804b203ec5111d79d1cf7bd4a9c94f8baf5191 (diff) | |
parent | 033641aa743b1f6056a44e57d3d94f9291aff6db (diff) |
Merge branch 'master' into xr-controller-support
Diffstat (limited to 'source/blender/editors/space_view3d/view3d_select.c')
-rw-r--r-- | source/blender/editors/space_view3d/view3d_select.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c index 215cc030f46..3cb656ddfc0 100644 --- a/source/blender/editors/space_view3d/view3d_select.c +++ b/source/blender/editors/space_view3d/view3d_select.c @@ -3779,6 +3779,9 @@ static bool mesh_circle_select(ViewContext *vc, if (SEL_OP_USE_PRE_DESELECT(sel_op)) { if (vc->em->bm->totvertsel) { EDBM_flag_disable_all(vc->em, BM_ELEM_SELECT); + vc->em->bm->totvertsel = 0; + vc->em->bm->totedgesel = 0; + vc->em->bm->totfacesel = 0; changed = true; } } @@ -3844,7 +3847,8 @@ static bool mesh_circle_select(ViewContext *vc, changed |= data.is_changed; if (changed) { - EDBM_selectmode_flush(vc->em); + BM_mesh_select_mode_flush_ex( + vc->em->bm, vc->em->selectmode, BM_SELECT_LEN_FLUSH_RECALC_NOTHING); } return changed; } |