KEYMAP REFACTORING
[blender.git] / source / blender / windowmanager / intern / wm.c
index a535c0bc1f8e783439e8aa0451de86ab4f81ba5a..1d5cf1cdc53b73b6934a1fd87ced440b41ce0992 100644 (file)
@@ -210,12 +210,18 @@ void WM_keymap_init(bContext *C)
 
        if(!wm->defaultconf)
                wm->defaultconf= WM_keyconfig_new(wm, "Blender");
+       if(!wm->addonconf)
+               wm->addonconf= WM_keyconfig_new(wm, "Blender Addon");
+       if(!wm->userconf)
+               wm->userconf= WM_keyconfig_new(wm, "Blender User");
        
-       if(wm && CTX_py_init_get(C) && (wm->initialized & WM_INIT_KEYMAP) == 0) {
+       if(CTX_py_init_get(C) && (wm->initialized & WM_INIT_KEYMAP) == 0) {
                /* create default key config */
                wm_window_keymap(wm->defaultconf);
                ED_spacetypes_keymap(wm->defaultconf);
-               WM_keyconfig_userdef();
+
+               WM_keyconfig_update_tag(NULL, NULL);
+               WM_keyconfig_update(wm);
 
                wm->initialized |= WM_INIT_KEYMAP;
        }