Node selection: Stop operator when mouse selection selected a node

Previously, hitting Shift-LMB will first invoke selection operator, which
then later on is transformed to mouse tweak used for reroute operator.

This was causing problems extending selection with Shift-LMB when clicking
fast or from a tablet.
This commit is contained in:
Sergey Sharybin 2017-12-11 17:38:47 +01:00 committed by Bastien Montagne
parent 1c7657befb
commit bf58ec9265
1 changed files with 2 additions and 3 deletions

View File

@ -476,9 +476,8 @@ static int node_select_exec(bContext *C, wmOperator *op)
if (node_mouse_select(bmain, snode, ar, mval, extend)) {
/* send notifiers */
WM_event_add_notifier(C, NC_NODE | NA_SELECTED, NULL);
/* allow tweak event to work too */
return OPERATOR_FINISHED | OPERATOR_PASS_THROUGH;
return OPERATOR_FINISHED;
}
else {
/* allow tweak event to work too */