Fix #29864: crash running blender in background mode with non-default key
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 12 Jan 2012 15:44:18 +0000 (15:44 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 12 Jan 2012 15:44:18 +0000 (15:44 +0000)
configuration.

source/blender/windowmanager/intern/wm_keymap.c

index c75395456dd5d0781511da63441217152c630d1d..24af3ffedc140eadd7c7eee8070c4a1422d045fd 100644 (file)
@@ -981,6 +981,8 @@ void WM_keyconfig_update(wmWindowManager *wm)
        wmKeyMapDiffItem *kmdi;
        int compat_update = 0;
 
+       if(G.background)
+               return;
        if(!WM_KEYMAP_UPDATE)
                return;