diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-11-13 23:01:32 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-11-13 23:02:40 +0300 |
commit | 520f71b43a4b24fb7c59d5798657cb7afb552ecf (patch) | |
tree | 2c974e2fb8a50d68604a13bdbc3ad9e9c0ea9cb6 /release/scripts/startup/bl_ui/space_toolsystem_common.py | |
parent | f9145bded3d0049190a0a6af7ad661a1403e6ce2 (diff) |
Fix tool keymaps not working properly after recent changes.
Not sure this is the best fix, but this should be working. Regardless it seems
good to tag active tool keymaps as such.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_toolsystem_common.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_common.py b/release/scripts/startup/bl_ui/space_toolsystem_common.py index 8a84f2d7d3c..14090c0f11d 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_common.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_common.py @@ -315,7 +315,7 @@ class ToolSelectPanelHelper: km_idname = f"{cls.keymap_prefix:s} {context_descr:s}, {text: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') + km = kc.keymaps.new(km_idname, space_type=cls.bl_space_type, region_type='WINDOW', tool=True) keymap_fn[0](km) keymap_fn[0] = km @@ -770,7 +770,7 @@ def keymap_from_context(context, space_type): keyconf = wm.keyconfigs.active keymap = keyconf.keymaps.get(km_name) if keymap is None: - keymap = keyconf.keymaps.new(km_name, space_type='EMPTY', region_type='TEMPORARY') + keymap = keyconf.keymaps.new(km_name, space_type='EMPTY', region_type='TEMPORARY', tool=True) for kmi in keymap.keymap_items: keymap.keymap_items.remove(kmi) |