Bugfix, irc report:

Crash on running in background mode. Calling GHOST function, but there is 
no GHOST initialized. Easy to skip.
This commit is contained in:
Ton Roosendaal
2012-12-12 22:02:08 +00:00
parent 160ebfa4c4
commit 9211fae41e

View 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();
}