[Bf-blender-cvs] [a63ba2739e] master: Cleanup: remove redundant temp dir init

Campbell Barton noreply at git.blender.org
Thu Mar 23 05:14:36 CET 2017


Commit: a63ba2739e2a3956a2049be74dc67aa59f26c7fc
Author: Campbell Barton
Date:   Thu Mar 23 15:05:42 2017 +1100
Branches: master
https://developer.blender.org/rBa63ba2739e2a3956a2049be74dc67aa59f26c7fc

Cleanup: remove redundant temp dir init

This is already called by wm_init_userdef, in old code
different initialization methods were used but now it's not needed.

Confusing since prefs are loaded in this function that don't initialize temp.

===================================================================

M	source/blender/windowmanager/intern/wm_files.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c
index 241bd90bdf..cff27dfc9e 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -727,8 +727,6 @@ int wm_homefile_read(
 		if (BLI_listbase_is_empty(&wmbase)) {
 			wm_clear_default_size(C);
 		}
-		BKE_tempdir_init(U.tempdir);
-
 #ifdef WITH_PYTHON_SECURITY
 		/* use alternative setting for security nuts
 		 * otherwise we'd need to patch the binary blob - startup.blend.c */




More information about the Bf-blender-cvs mailing list