Fix Blender 2.7x keymap faulure to select & drag multiple nodes

A follow up on the fix for T98145 for the 2.7x keymap.
This commit is contained in:
Campbell Barton 2022-05-26 20:52:28 +10:00
parent 3131107ba3
commit 790fe55c52
Notes: blender-bot 2023-02-13 23:39:48 +01:00
Referenced by issue #98370, Regression: keymap 2.7x: Right click does not select nodes
1 changed files with 4 additions and 8 deletions

View File

@ -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),