Bugfix, irc report:
authorTon Roosendaal <ton@blender.org>
Wed, 12 Dec 2012 22:02:08 +0000 (22:02 +0000)
committerTon Roosendaal <ton@blender.org>
Wed, 12 Dec 2012 22:02:08 +0000 (22:02 +0000)
Crash on running in background mode. Calling GHOST function, but there is
no GHOST initialized. Easy to skip.

source/blender/windowmanager/intern/wm_files.c

index 0f983cbd5684a03035581c52417d65c4b065dd1d..6c16c968a8124d306baa8622ecd64ac2263a1107 100644 (file)
@@ -304,8 +304,10 @@ static void wm_init_userdef(bContext *C)
        BLI_init_temporary_dir(U.tempdir);
        
        /* displays with larger native pixels, like Macbook. Used to scale dpi with */
-       U.pixelsize = GHOST_GetNativePixelSize();
+       if (G.background == FALSE)
+               U.pixelsize = GHOST_GetNativePixelSize();
        if (U.pixelsize == 0) U.pixelsize = 1;
+
        BKE_userdef_state();
 }