Fix T63981: Factory default memory cache limit is 4096 MB

The initialization of default settings and cache limit and audio.
This commit is contained in:
Sergey Sharybin
2019-05-31 12:06:57 +02:00
parent fdb83d98f7
commit 77d119a231

View File

@@ -358,9 +358,6 @@ static void wm_init_userdef(Main *bmain, const bool read_userdef_from_memory)
/* versioning is here */
UI_init_userdef(bmain);
MEM_CacheLimiter_set_maximum(((size_t)U.memcachelimit) * 1024 * 1024);
BKE_sound_init(bmain);
/* needed so loading a file from the command line respects user-pref [#26156] */
SET_FLAG_FROM_TEST(G.fileflags, U.flag & USER_FILENOUI, G_FILE_NO_UI);
@@ -375,6 +372,9 @@ static void wm_init_userdef(Main *bmain, const bool read_userdef_from_memory)
BLO_update_defaults_userpref_blend();
}
MEM_CacheLimiter_set_maximum(((size_t)U.memcachelimit) * 1024 * 1024);
BKE_sound_init(bmain);
/* update tempdir from user preferences */
BKE_tempdir_init(U.tempdir);
}