Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-15 21:29:20 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-03-15 21:31:43 +0300
commitfb4bb611559bdb9d7f7b5206a812965c9223c0a9 (patch)
treec63e3b28124e226d913f7dd74ffb1a3a24e8da83
parent99fe7742987202035031727d9cd181d574d7e810 (diff)
Fix T62608: many tools in the toolbar not working.
The keymap names still use the label, so use that again for looking up the keymap so things work again after recent changes.
-rw-r--r--release/scripts/startup/bl_ui/space_toolsystem_common.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_common.py b/release/scripts/startup/bl_ui/space_toolsystem_common.py
index e893ee89e52..4e3cecf2631 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_common.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_common.py
@@ -309,8 +309,8 @@ class ToolSelectPanelHelper:
return context.button_operator.name
@classmethod
- def _km_action_simple(cls, kc, context_descr, idname, keymap_fn):
- km_idname = f"{cls.keymap_prefix:s} {context_descr:s}, {idname:s}"
+ def _km_action_simple(cls, kc, context_descr, label, keymap_fn):
+ km_idname = f"{cls.keymap_prefix:s} {context_descr:s}, {label:s}"
km = kc.keymaps.get(km_idname)
if km is None:
km = kc.keymaps.new(km_idname, space_type=cls.bl_space_type, region_type='WINDOW', tool=True)
@@ -355,7 +355,7 @@ class ToolSelectPanelHelper:
for item in cls._tools_flatten_with_keymap(tools):
keymap_data = item.keymap
if callable(keymap_data[0]):
- cls._km_action_simple(kc, context_descr, item.idname, keymap_data)
+ cls._km_action_simple(kc, context_descr, item.label, keymap_data)
@classmethod
def keymap_ui_hierarchy(cls, context_mode):