From a63ba2739e2a3956a2049be74dc67aa59f26c7fc Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 23 Mar 2017 15:05:42 +1100 Subject: [PATCH] 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. --- source/blender/windowmanager/intern/wm_files.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/source/blender/windowmanager/intern/wm_files.c b/source/blender/windowmanager/intern/wm_files.c index 241bd90bdf3..cff27dfc9e8 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 */