[Bf-blender-cvs] [133f6a98126] blender-v2.82-release: Bevel: flush selection with non-modal execution
Campbell Barton
noreply at git.blender.org
Mon Jan 20 15:28:48 CET 2020
Commit: 133f6a9812609feda64418ee0c8f318f28e8d8db
Author: Campbell Barton
Date: Tue Jan 21 01:27:46 2020 +1100
Branches: blender-v2.82-release
https://developer.blender.org/rB133f6a9812609feda64418ee0c8f318f28e8d8db
Bevel: flush selection with non-modal execution
===================================================================
M source/blender/editors/mesh/editmesh_bevel.c
===================================================================
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) {
More information about the Bf-blender-cvs
mailing list