From 0708b9aba8f7da87c4cf97b96c0bc9229fa9689c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 12 Jul 2016 12:53:49 +1000 Subject: writefile: reuse SDNA between writes Avoids decoding the SDNA string every undo step. --- source/blender/windowmanager/intern/wm_init_exit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/windowmanager') diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 9d1083bbf63..3022d865460 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -40,6 +40,7 @@ #include "MEM_guardedalloc.h" +#include "DNA_genfile.h" #include "DNA_scene_types.h" #include "DNA_userdef_types.h" #include "DNA_windowmanager_types.h" @@ -584,6 +585,8 @@ void WM_exit_ext(bContext *C, const bool do_python) GHOST_DisposeSystemPaths(); + DNA_sdna_current_free(); + BLI_threadapi_exit(); BKE_blender_atexit(); -- cgit v1.2.3