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.
This commit is contained in:
Nathan Letwory 2013-06-15 20:12:16 +00:00
parent 06268dfa4d
commit 11f104a4a3

@ -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