Node selection: Stop operator when mouse selection selected a node
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 11 Dec 2017 16:38:47 +0000 (17:38 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 11 Dec 2017 16:38:47 +0000 (17:38 +0100)
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.

source/blender/editors/space_node/node_select.c

index dc7863bb354d07785df99bcedbe12ec1e61a3198..c684b98ce553d1b88e6c6c01a1eda171ec4eb1d1 100644 (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 */