Skip loading tool keymaps in background mode

This commit is contained in:
Campbell Barton 2017-10-26 22:04:48 +11:00
parent ef96f36ee9
commit f9b2a7879b
1 changed files with 4 additions and 0 deletions

View File

@ -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: