Fix crash in background mode after the NDof deadzone commit
authorSergey Sharybin <sergey.vfx@gmail.com>
Thu, 2 Jul 2015 13:59:12 +0000 (15:59 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Thu, 2 Jul 2015 13:59:12 +0000 (15:59 +0200)
source/blender/windowmanager/intern/wm_init_exit.c

index dc36cfbaf574a814cda50e036cb67bdec3ca03b8..0515cd01f6fcb4db1765a1094014c4c1209c0263 100644 (file)
@@ -171,12 +171,13 @@ void WM_init(bContext *C, int argc, const char **argv)
        /* get the default database, plus a wm */
        wm_homefile_read(C, NULL, G.factory_startup, NULL);
        
-       /* sets 3D mouse deadzone */
-       WM_ndof_deadzone_set(U.ndof_deadzone);
 
        BLF_lang_set(NULL);
 
        if (!G.background) {
+               /* sets 3D mouse deadzone */
+               WM_ndof_deadzone_set(U.ndof_deadzone);
+
                GPU_init();
 
                GPU_set_mipmap(!(U.gameflags & USER_DISABLE_MIPMAP));