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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user