forked from bartvdbraak/blender
Skip loading tool keymaps in background mode
This commit is contained in:
parent
ef96f36ee9
commit
f9b2a7879b
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user