[Bf-extensions-cvs] [bb86f5b] master: Sequencer tools: fix minor glitch with keymaps (addons keyconf is None in background mode...)
Bastien Montagne
noreply at git.blender.org
Tue Mar 18 10:49:43 CET 2014
Commit: bb86f5b1af5c270af5e38d5e24029acae8acb034
Author: Bastien Montagne
Date: Tue Mar 18 10:47:56 2014 +0100
https://developer.blender.org/rBACbb86f5b1af5c270af5e38d5e24029acae8acb034
Sequencer tools: fix minor glitch with keymaps (addons keyconf is None in background mode...)
===================================================================
M sequencer_tools/__init__.py
===================================================================
diff --git a/sequencer_tools/__init__.py b/sequencer_tools/__init__.py
index 48a62f1..575ec8a 100644
--- a/sequencer_tools/__init__.py
+++ b/sequencer_tools/__init__.py
@@ -61,6 +61,8 @@ def update_keymap(activate):
# Add.
if activate:
kconf = bpy.context.window_manager.keyconfigs.addon
+ if not kconf:
+ return # happens in background mode...
for km_info, km_items in KEYMAPS:
km_name, km_regtype, km_sptype, km_ismodal = km_info
kmap = [k for k in kconf.keymaps
More information about the Bf-extensions-cvs
mailing list