Fix #20886: user defined keymap could be loaded before python scripts,
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Sat, 30 Jan 2010 12:01:44 +0000 (12:01 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Sat, 30 Jan 2010 12:01:44 +0000 (12:01 +0000)
printing errors when that keymap included python operators.

source/blender/windowmanager/intern/wm.c

index 7f4bb59bbae41df888fbc41aa26a08200698f002..bd26a94c917cc3c1c9af16e18f864d5bca1c3bac 100644 (file)
@@ -190,11 +190,10 @@ void WM_keymap_init(bContext *C)
                /* create default key config */
                wm_window_keymap(wm->defaultconf);
                ED_spacetypes_keymap(wm->defaultconf);
+               WM_keyconfig_userdef(wm);
 
                wm->initialized |= WM_INIT_KEYMAP;
        }
-
-       WM_keyconfig_userdef(wm);
 }
 
 void WM_check(bContext *C)