[Bf-blender-cvs] [f9b2a7879bc] blender2.8: Skip loading tool keymaps in background mode

Campbell Barton noreply at git.blender.org
Thu Oct 26 13:00:13 CEST 2017


Commit: f9b2a7879bcabd44a6d5c8fb15ecb9ae5126abaa
Author: Campbell Barton
Date:   Thu Oct 26 22:04:48 2017 +1100
Branches: blender2.8
https://developer.blender.org/rBf9b2a7879bcabd44a6d5c8fb15ecb9ae5126abaa

Skip loading tool keymaps in background mode

===================================================================

M	release/scripts/startup/bl_ui/space_toolsystem_common.py

===================================================================

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:



More information about the Bf-blender-cvs mailing list