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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user