diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-04-26 15:30:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-04-26 15:32:35 +0300 |
commit | 57405054b21ccc3a1aee3ab8bcae66cf8f7ca5fb (patch) | |
tree | 6a41d6ea57ab5a35a03bb3fb5bfed28faa98fbd8 /source | |
parent | 3c7500ca714d34c06f6c122d75bb170f72b853de (diff) |
Fix T54836: Select sharp edges doesn't flush to faces
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index 181fc4c0c52..019aa6d4201 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -3533,6 +3533,13 @@ static int edbm_select_sharp_edges_exec(bContext *C, wmOperator *op) } } + if ((em->bm->selectmode & (SCE_SELECT_VERTEX | SCE_SELECT_EDGE)) == 0) { + /* Since we can't select individual edges, select faces connected to them. */ + EDBM_selectmode_convert(em, SCE_SELECT_EDGE, SCE_SELECT_FACE); + } + else { + EDBM_selectmode_flush(em); + } WM_event_add_notifier(C, NC_GEOM | ND_SELECT, obedit->data); return OPERATOR_FINISHED; |