diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-05-31 13:06:57 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-05-31 13:08:10 +0300 |
commit | 77d119a2311133f4cda4e4780486d13d302384a6 (patch) | |
tree | 5896da18a2c97a5a89a38e4edc669b38aebbbe57 /source/blender/windowmanager | |
parent | fdb83d98f75ff990bcc6ac374eca9804d4cda5ee (diff) |
Fix T63981: Factory default memory cache limit is 4096 MB
The initialization of default settings and cache limit and audio.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index d93d4a618d7..75bd10df30e 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -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); } |