Keymap: use action-tweak for node re-route
authorCampbell Barton <ideasman42@gmail.com>
Thu, 20 Dec 2018 03:59:36 +0000 (14:59 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 20 Dec 2018 03:59:36 +0000 (14:59 +1100)
Avoids same kinds of conflicts as link-cut w/ box select.

release/scripts/presets/keyconfig/keymap_data/blender_default.py

index f029504069deae071162a0e1ae065ad33a37c023..bca9c958a00e66382d2d750cc4b7c336863d227f 100644 (file)
@@ -1558,7 +1558,7 @@ def km_node_editor(params):
         ("node.link", {"type": 'LEFTMOUSE', "value": 'PRESS', "ctrl": True},
          {"properties": [("detach", True)]}),
         ("node.resize", {"type": 'LEFTMOUSE', "value": 'PRESS'}, None),
-        ("node.add_reroute", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True}, 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),
         ("node.backimage_move", {"type": 'MIDDLEMOUSE', "value": 'PRESS', "alt": True}, None),