Cleanup: logical error in path select picking

Resolve logical error in edbm_shortest_path_pick_invoke
where any discrepancy between EDBM_unified_findnearest and
edbm_elem_find_nearest caused the active-object to be cleared.

While it's not a problem at the moment, using a larger threshold
for path picking exposes the error.
This commit is contained in:
Campbell Barton 2021-03-29 16:45:37 +11:00
parent 8994f09a4a
commit 3659340571
1 changed files with 2 additions and 3 deletions

View File

@ -669,18 +669,17 @@ static int edbm_shortest_path_pick_invoke(bContext *C, wmOperator *op, const wmE
return edbm_shortest_path_pick_exec(C, op);
}
Base *basact = NULL;
BMVert *eve = NULL;
BMEdge *eed = NULL;
BMFace *efa = NULL;
ViewContext vc;
BMEditMesh *em;
bool track_active = true;
em_setup_viewcontext(C, &vc);
copy_v2_v2_int(vc.mval, event->mval);
em = vc.em;
Base *basact = BASACT(vc.view_layer);
BMEditMesh *em = vc.em;
view3d_operator_needs_opengl(C);