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:
authorCampbell Barton <ideasman42@gmail.com>2017-10-26 14:04:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2017-10-26 14:04:48 +0300
commitf9b2a7879bcabd44a6d5c8fb15ecb9ae5126abaa (patch)
tree13470a1c516d00604ecbc0c7873e708866fb3c9c /release
parentef96f36ee961e7f11556570da2b9cef0a08159f9 (diff)
Skip loading tool keymaps in background mode
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_toolsystem_common.py4
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: