Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/windowmanager/intern/wm_files.c6
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);
}