Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2019-05-23 17:24:46 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2019-05-23 17:37:08 +0300
commitfd3f75a02cf9c40c7ba0d15f2c55188b18662a93 (patch)
tree8f927fc64f1ad32cb0d2aea58cb63bcec0992458
parent5c0e282a73935051efaab9d089590e6d4f627b97 (diff)
Fix several issues with recent node selection changes.
Root of the issue (beside lack of control over operators evaluation in keymaps, since tools always get tried first), is that wurrent WM code only allows one modal op to start from a single event (returning `PASSTHROUGH` in that case is useless, WM code still considers event as consumed and does not try any further handling of it). Solution is then to change trigger events of resize/link operators from `LEFTMOUSE` to `EVT_TWEAK_L`, which makes more sense anyway, imho, for drag operations... Fix T64693: Can't resize selected node. Fix T64933: "Dots" in node editor can no longer be selected by just clicking on them. Fix T64660: no access to node connectors when a node is inside a layout frame.
-rw-r--r--release/scripts/presets/keyconfig/keymap_data/blender_default.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
index bf4eeaa2d01..a326bedbaa0 100644
--- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py
+++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py
@@ -1605,11 +1605,11 @@ def km_node_editor(params):
("node.select_lasso", {"type": 'EVT_TWEAK_L', "value": 'ANY', "shift": True, "ctrl": True, "alt": True},
{"properties": [("mode", 'SUB')]}),
("node.select_circle", {"type": 'C', "value": 'PRESS'}, None),
- ("node.link", {"type": 'LEFTMOUSE', "value": 'PRESS'},
+ ("node.link", {"type": 'EVT_TWEAK_L', "value": 'ANY'},
{"properties": [("detach", False)]}),
- ("node.link", {"type": 'LEFTMOUSE', "value": 'PRESS', "ctrl": True},
+ ("node.link", {"type": 'EVT_TWEAK_L', "value": 'ANY', "ctrl": True},
{"properties": [("detach", True)]}),
- ("node.resize", {"type": 'LEFTMOUSE', "value": 'PRESS'}, None),
+ ("node.resize", {"type": 'EVT_TWEAK_L', "value": 'ANY'}, None),
("node.add_reroute", {"type": params.action_tweak, "value": 'ANY', "shift": True}, None),
("node.links_cut", {"type": params.action_tweak, "value": 'ANY', "ctrl": True}, None),
("node.select_link_viewer", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True, "ctrl": True}, None),