Fix #122251: Using industry compatible keymap with VSE emits warnings

Tweak tool keymap was empty. `_template_items_tool_select` was added to
tweak tool.

Pull Request: https://projects.blender.org/blender/blender/pulls/123200
This commit is contained in:
Richard Antalik 2024-07-01 22:54:23 +02:00
parent 7bc188a760
commit f205079f1e

@ -4394,7 +4394,7 @@ def km_sequencer_editor_tool_select_preview(params):
return ( return (
"Sequencer Preview Tool: Tweak", "Sequencer Preview Tool: Tweak",
{"space_type": 'SEQUENCE_EDITOR', "region_type": 'WINDOW'}, {"space_type": 'SEQUENCE_EDITOR', "region_type": 'WINDOW'},
{"items": []} {"items": _template_items_tool_select(params, "sequencer.select", extend="toggle")}
) )
@ -4402,7 +4402,7 @@ def km_sequencer_editor_tool_select_timeline(params):
return ( return (
"Sequencer Timeline Tool: Tweak", "Sequencer Timeline Tool: Tweak",
{"space_type": 'SEQUENCE_EDITOR', "region_type": 'WINDOW'}, {"space_type": 'SEQUENCE_EDITOR', "region_type": 'WINDOW'},
{"items": []} {"items": _template_items_tool_select(params, "sequencer.select", extend="toggle")}
) )
# NOTE: duplicated from `blender_default.py`. # NOTE: duplicated from `blender_default.py`.