Fix T54836: Select sharp edges doesn't flush to faces

This commit is contained in:
Campbell Barton 2018-04-26 14:30:27 +02:00
parent 35742e882f
commit 3f1df6f6fc
Notes: blender-bot 2023-10-12 12:49:04 +02:00
Referenced by issue #54836, A little bug with Select -> sharp edges
1 changed files with 7 additions and 0 deletions

View File

@ -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;