Fix T96512: Crash selecting an edge

Regression in 5e5285baf6.
This commit is contained in:
Campbell Barton 2022-03-16 23:40:59 +11:00
parent 31f31496af
commit cb267cec55
Notes: blender-bot 2023-02-14 03:29:37 +01:00
Referenced by issue #96512, Crash when selecting edge
1 changed files with 3 additions and 3 deletions

View File

@ -2126,9 +2126,9 @@ bool EDBM_select_pick(bContext *C, const int mval[2], const struct SelectPick_Pa
break;
}
case SEL_OP_SET: {
if (!BM_elem_flag_test(eve, BM_ELEM_SELECT)) {
BM_select_history_store(vc.em->bm, eve);
BM_vert_select_set(vc.em->bm, eve, true);
if (!BM_elem_flag_test(eed, BM_ELEM_SELECT)) {
BM_select_history_store(vc.em->bm, eed);
BM_edge_select_set(vc.em->bm, eed, true);
}
break;
}