Fix: Clicking in empty area in Node Editor was no longer deselecting all.

There was a missing keymap property on the select operator for both the default and Industry Compatible keymap
This commit is contained in:
William Reynish 2019-06-15 20:09:15 +02:00
parent 2db35ff03a
commit 2696c85ba7
2 changed files with 2 additions and 2 deletions

View File

@ -1579,7 +1579,7 @@ def km_node_editor(params):
def node_select_ops(select_mouse):
return [
("node.select", {"type": select_mouse, "value": 'PRESS'},
{"properties": [("extend", False)]}),
{"properties": [("extend", False), ("deselect_all", True)]}),
("node.select", {"type": select_mouse, "value": 'PRESS', "ctrl": True},
{"properties": [("extend", False)]}),
("node.select", {"type": select_mouse, "value": 'PRESS', "alt": True},

View File

@ -1009,7 +1009,7 @@ def km_node_editor(params):
def node_select_ops(select_mouse):
return [
("node.select", {"type": select_mouse, "value": 'PRESS'},
{"properties": [("extend", False)]}),
{"properties": [("extend", False), ("deselect_all", True)]}),
("node.select", {"type": select_mouse, "value": 'PRESS', "ctrl": True},
{"properties": [("extend", False)]}),
("node.select", {"type": select_mouse, "value": 'PRESS', "alt": True},