Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-04-26 15:30:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-26 15:35:55 +0300
commit3f1df6f6fc098c2eff4efc1f916132ba7a6d94a9 (patch)
tree687bed765b2f824bccd2e989366acb8c09c4b394
parent35742e882f4d8aacc2777907492af4d05ac86244 (diff)
Fix T54836: Select sharp edges doesn't flush to faces
-rw-r--r--source/blender/editors/mesh/editmesh_select.c7
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 b45db94318b..11fb65242f5 100644
--- a/source/blender/editors/mesh/editmesh_select.c
+++ b/source/blender/editors/mesh/editmesh_select.c
@@ -3690,6 +3690,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;