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:
authorNathan Letwory <nathan@letworyinteractive.com>2013-06-16 00:12:16 +0400
committerNathan Letwory <nathan@letworyinteractive.com>2013-06-16 00:12:16 +0400
commit11f104a4a31901febb6043cf1121599dd0d84155 (patch)
tree7526f1bad2556f7c07ea8ba125384642aec37dfc /source/blender/windowmanager/intern/wm_files.c
parent06268dfa4d2a51e37f2fe7597ac14592f141fd8f (diff)
Fix [#35728] "Load Factory Settings" changes temp fonder to "/temp/\"
This was actually being reset to "/tmp\". Initialisation for the temp dir was missing after the userpref reload.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files.c')
-rw-r--r--source/blender/windowmanager/intern/wm_files.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 406dbd8ca96..b6aecf120cc 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -540,6 +540,7 @@ int wm_homefile_read(bContext *C, ReportList *UNUSED(reports), short from_memory
if (success == 0) {
success = BKE_read_file_from_memory(C, datatoc_startup_blend, datatoc_startup_blend_size, NULL);
if (wmbase.first == NULL) wm_clear_default_size(C);
+ BLI_init_temporary_dir(U.tempdir);
#ifdef WITH_PYTHON_SECURITY
/* use alternative setting for security nuts