Fix crash with select linked when nothing is under the cursor

There is no object to update anyways, and there is no valid basact when the
nified_findnearest() test fails.

How to reproduce the bug: Try to select linked (L) with selected faces but
withotu mouse hovering any mesh.

Bug introduced on: rBbfc9d426bb95 (original multi-object edit commit).
This commit is contained in:
Dalai Felinto
2018-05-06 13:19:17 +02:00
parent b6a7fa1880
commit 4df7220874

View File

@@ -3097,8 +3097,6 @@ static int edbm_select_linked_pick_invoke(bContext *C, wmOperator *op, const wmE
/* return warning! */
if (unified_findnearest(&vc, &basact, &eve, &eed, &efa) == 0) {
WM_event_add_notifier(C, NC_GEOM | ND_SELECT, basact->object->data);
return OPERATOR_CANCELLED;
}
ED_view3d_viewcontext_init_object(&vc, basact->object);