diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-01-20 17:27:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-01-20 17:27:46 +0300 |
commit | 133f6a9812609feda64418ee0c8f318f28e8d8db (patch) | |
tree | 421bcc065c663e449d34831b3af1160af4559d72 /source | |
parent | 5c5f2bd221ca5dc3d7344f4595f05ad60d525b7d (diff) |
Bevel: flush selection with non-modal execution
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/mesh/editmesh_bevel.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/source/blender/editors/mesh/editmesh_bevel.c b/source/blender/editors/mesh/editmesh_bevel.c index 887a971d516..02e4d0eb708 100644 --- a/source/blender/editors/mesh/editmesh_bevel.c +++ b/source/blender/editors/mesh/editmesh_bevel.c @@ -421,17 +421,20 @@ static void edbm_bevel_exit(bContext *C, wmOperator *op) ED_area_status_text(sa, NULL); } + for (uint ob_index = 0; ob_index < opdata->ob_store_len; ob_index++) { + Object *obedit = opdata->ob_store[ob_index].ob; + BMEditMesh *em = BKE_editmesh_from_object(obedit); + /* Without this, faces surrounded by selected edges/verts will be unselected. */ + if ((em->selectmode & SCE_SELECT_FACE) == 0) { + EDBM_selectmode_flush(em); + } + } + if (opdata->is_modal) { View3D *v3d = CTX_wm_view3d(C); ARegion *ar = CTX_wm_region(C); for (uint ob_index = 0; ob_index < opdata->ob_store_len; ob_index++) { - Object *obedit = opdata->ob_store[ob_index].ob; - BMEditMesh *em = BKE_editmesh_from_object(obedit); EDBM_redo_state_free(&opdata->ob_store[ob_index].mesh_backup, NULL, false); - /* Without this, faces surrounded by selected edges/verts will be unselected. */ - if ((em->selectmode & SCE_SELECT_FACE) == 0) { - EDBM_selectmode_flush(em); - } } ED_region_draw_cb_exit(ar->type, opdata->draw_handle_pixel); if (v3d) { |