From 790fe55c52057919b3f3f6e95f4e510719293eeb Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 26 May 2022 20:52:28 +1000 Subject: Fix Blender 2.7x keymap faulure to select & drag multiple nodes A follow up on the fix for T98145 for the 2.7x keymap. --- .../scripts/presets/keyconfig/keymap_data/blender_default.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'release/scripts') diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py index 64e0917da65..2c93c881b07 100644 --- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -2027,13 +2027,9 @@ def km_node_editor(params): items.extend(_template_node_select(type='LEFTMOUSE', value='PRESS', select_passthrough=True)) else: items.extend(_template_node_select( - type='RIGHTMOUSE', value=params.select_mouse_value, select_passthrough=False)) - items.extend([ - ("node.select", {"type": 'LEFTMOUSE', "value": 'PRESS'}, - {"properties": [("deselect_all", False)]}), - ("node.select", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True}, - {"properties": [("toggle", True)]}), - ]) + type='RIGHTMOUSE', value=params.select_mouse_value, select_passthrough=True)) + items.extend(_template_node_select( + type='LEFTMOUSE', value='PRESS', select_passthrough=True)) items.extend([ ("node.select_box", {"type": params.select_mouse, "value": 'CLICK_DRAG'}, @@ -4768,7 +4764,7 @@ def _template_view3d_gpencil_select(*, type, value, legacy, use_select_mouse=Tru def _template_node_select(*, type, value, select_passthrough): items = [ ("node.select", {"type": type, "value": value}, - {"properties": [("deselect_all", True), ("select_passthrough", True)]}), + {"properties": [("deselect_all", True), ("select_passthrough", select_passthrough)]}), ("node.select", {"type": type, "value": value, "ctrl": True}, None), ("node.select", {"type": type, "value": value, "alt": True}, None), ("node.select", {"type": type, "value": value, "ctrl": True, "alt": True}, None), -- cgit v1.2.3