[Bf-blender-cvs] [84b8ce3] master: Fix crash in background mode after the NDof deadzone commit

Sergey Sharybin noreply at git.blender.org
Thu Jul 2 15:59:45 CEST 2015


Commit: 84b8ce32a4b0c000dac2aaff4494f31a5835f5d1
Author: Sergey Sharybin
Date:   Thu Jul 2 15:59:12 2015 +0200
Branches: master
https://developer.blender.org/rB84b8ce32a4b0c000dac2aaff4494f31a5835f5d1

Fix crash in background mode after the NDof deadzone commit

===================================================================

M	source/blender/windowmanager/intern/wm_init_exit.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c
index dc36cfb..0515cd0 100644
--- a/source/blender/windowmanager/intern/wm_init_exit.c
+++ b/source/blender/windowmanager/intern/wm_init_exit.c
@@ -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));




More information about the Bf-blender-cvs mailing list