mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix #109427: Shortcut missing in animation editors channel context menu
Specifying the correct operator context (`INVOKE_REGION_CHANNELS` in this case) is mandatory, otherwise looking up the shortcut in `wm_keymap_item_find_props` will fetch the wrong region (`RGN_TYPE_WINDOW` not `RGN_TYPE_CHANNELS`) and thus wont find the keymap item in that region keymap. This was already done for the other menus, not for the context menu though. Pull Request: https://projects.blender.org/blender/blender/pulls/111376
This commit is contained in:
parent
a423ebad48
commit
895702f803
1 changed files with 2 additions and 0 deletions
|
|
@ -689,6 +689,8 @@ class DOPESHEET_MT_channel_context_menu(Menu):
|
|||
# This menu is used from the graph editor too.
|
||||
is_graph_editor = context.area.type == 'GRAPH_EDITOR'
|
||||
|
||||
layout.operator_context = 'INVOKE_REGION_CHANNELS'
|
||||
|
||||
layout.operator("anim.channels_setting_enable", text="Mute Channels").type = 'MUTE'
|
||||
layout.operator("anim.channels_setting_disable", text="Unmute Channels").type = 'MUTE'
|
||||
layout.separator()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue