diff options
author | Campbell Barton <campbell@blender.org> | 2022-03-16 15:40:59 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-03-16 15:42:31 +0300 |
commit | cb267cec5552c17092a99999e4e352bf266b578f (patch) | |
tree | 23dc3c196beca8602be5a3418915daed8aa67ee5 /source | |
parent | 31f31496af6d343002e6d12a2b5303b0982215c3 (diff) |
Fix T96512: Crash selecting an edge
Regression in 5e5285baf621.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/mesh/editmesh_select.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editmesh_select.c b/source/blender/editors/mesh/editmesh_select.c index 4d73a0460b2..fba6838fd99 100644 --- a/source/blender/editors/mesh/editmesh_select.c +++ b/source/blender/editors/mesh/editmesh_select.c @@ -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; } |