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
parent 7719f7d27a
commit 43f33ea300
Notes: blender-bot 2023-02-14 09:44:56 +01:00
Referenced by commit 99069c8ae2, Revert "Node selection: Stop operator when mouse selection selected a node"
Referenced by issue #53683, 2.79a release
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 */