diff options
-rw-r--r-- | source/blender/windowmanager/intern/wm_files.c | 2 | ||||
-rw-r--r-- | source/creator/creator.c | 8 |
2 files changed, 1 insertions, 9 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 69b7c7bb1e3..23571395e24 100644 --- a/source/blender/windowmanager/intern/wm_files.c +++ b/source/blender/windowmanager/intern/wm_files.c @@ -415,7 +415,7 @@ static void wm_init_userdef(Main *bmain) MEM_CacheLimiter_set_maximum(((size_t)U.memcachelimit) * 1024 * 1024); BKE_sound_init(bmain); - /* Update `U.tempdir` from user preferences. */ + /* Update the temporary directory from the preferences or fallback to the system default. */ BKE_tempdir_init(U.tempdir); /* Update tablet API preference. */ diff --git a/source/creator/creator.c b/source/creator/creator.c index f7b0fa3a31f..7b279edb6b0 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -458,11 +458,6 @@ int main(int argc, BLI_argsParse(ba, 3, NULL, NULL); #endif WM_init(C, argc, (const char **)argv); - - /* This is properly initialized with user-preferences, - * but this is default. - * Call after loading the #BLENDER_STARTUP_FILE so we can read #U.tempdir */ - BKE_tempdir_init(U.tempdir); } else { #ifndef WITH_PYTHON_MODULE @@ -470,9 +465,6 @@ int main(int argc, #endif WM_init(C, argc, (const char **)argv); - - /* Don't use user preferences #U.tempdir */ - BKE_tempdir_init(NULL); } #ifdef WITH_PYTHON /** |