diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-26 14:04:48 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-10-26 14:04:48 +0300 |
commit | f9b2a7879bcabd44a6d5c8fb15ecb9ae5126abaa (patch) | |
tree | 13470a1c516d00604ecbc0c7873e708866fb3c9c /release | |
parent | ef96f36ee961e7f11556570da2b9cef0a08159f9 (diff) |
Skip loading tool keymaps in background mode
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_common.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_common.py b/release/scripts/startup/bl_ui/space_toolsystem_common.py index 38971f73984..bab25c3450b 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_common.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_common.py @@ -81,6 +81,10 @@ class ToolSelectPanelHelper: # {tool_name: (keymap, keymap_idname, manipulator_group_idname), ...} cls._tool_keymap = {} + # ignore in background mode + if kc is None: + return + for t in cls.tools_all(): text, mp_idname, actions = t if actions is not None: |