Merge branch 'blender-v4.4-release'
This commit is contained in:
@@ -2291,33 +2291,16 @@ def km_node_editor(params):
|
||||
{"properties": [("data_path", "space_data.overlay.show_overlays")]}),
|
||||
*_template_items_context_menu("NODE_MT_context_menu", params.context_menu_event),
|
||||
# Viewer shortcuts.
|
||||
("node.viewer_shortcut_get", {"type": 'ONE', "value": 'PRESS'}, {"properties": [("viewer_index", 1)]}),
|
||||
("node.viewer_shortcut_set", {"type": 'ONE', "value": 'PRESS',
|
||||
'ctrl': True}, {"properties": [("viewer_index", 1)]}),
|
||||
("node.viewer_shortcut_get", {"type": 'TWO', "value": 'PRESS'}, {"properties": [("viewer_index", 2)]}),
|
||||
("node.viewer_shortcut_set", {"type": 'TWO', "value": 'PRESS',
|
||||
'ctrl': True}, {"properties": [("viewer_index", 2)]}),
|
||||
("node.viewer_shortcut_get", {"type": 'THREE', "value": 'PRESS'}, {"properties": [("viewer_index", 3)]}),
|
||||
("node.viewer_shortcut_set", {"type": 'THREE', "value": 'PRESS', 'ctrl': True},
|
||||
{"properties": [("viewer_index", 3)]}),
|
||||
("node.viewer_shortcut_get", {"type": 'FOUR', "value": 'PRESS'}, {"properties": [("viewer_index", 4)]}),
|
||||
("node.viewer_shortcut_set", {"type": 'FOUR', "value": 'PRESS', 'ctrl': True},
|
||||
{"properties": [("viewer_index", 4)]}),
|
||||
("node.viewer_shortcut_get", {"type": 'FIVE', "value": 'PRESS'}, {"properties": [("viewer_index", 5)]}),
|
||||
("node.viewer_shortcut_set", {"type": 'FIVE', "value": 'PRESS', 'ctrl': True},
|
||||
{"properties": [("viewer_index", 5)]}),
|
||||
("node.viewer_shortcut_get", {"type": 'SIX', "value": 'PRESS'}, {"properties": [("viewer_index", 6)]}),
|
||||
("node.viewer_shortcut_set", {"type": 'SIX', "value": 'PRESS', 'ctrl': True},
|
||||
{"properties": [("viewer_index", 6)]}),
|
||||
("node.viewer_shortcut_get", {"type": 'SEVEN', "value": 'PRESS'}, {"properties": [("viewer_index", 7)]}),
|
||||
("node.viewer_shortcut_set", {"type": 'SEVEN', "value": 'PRESS', 'ctrl': True},
|
||||
{"properties": [("viewer_index", 7)]}),
|
||||
("node.viewer_shortcut_get", {"type": 'EIGHT', "value": 'PRESS'}, {"properties": [("viewer_index", 8)]}),
|
||||
("node.viewer_shortcut_set", {"type": 'EIGHT', "value": 'PRESS', 'ctrl': True},
|
||||
{"properties": [("viewer_index", 8)]}),
|
||||
("node.viewer_shortcut_get", {"type": 'NINE', "value": 'PRESS'}, {"properties": [("viewer_index", 9)]}),
|
||||
("node.viewer_shortcut_set", {"type": 'NINE', "value": 'PRESS', 'ctrl': True},
|
||||
{"properties": [("viewer_index", 9)]}),
|
||||
*(
|
||||
("node.viewer_shortcut_get", {"type": NUMBERS_0[i], "value": 'PRESS'},
|
||||
{"properties": [("viewer_index", i)]})
|
||||
for i in range(1, 10)
|
||||
),
|
||||
*(
|
||||
("node.viewer_shortcut_set", {"type": NUMBERS_0[i], "value": 'PRESS', "ctrl": True},
|
||||
{"properties": [("viewer_index", i)]})
|
||||
for i in range(1, 10)
|
||||
),
|
||||
])
|
||||
|
||||
return keymap
|
||||
|
||||
Reference in New Issue
Block a user