ability to have permanent callbacks that stay active when new blend files are loaded.
[blender.git] / source / blender / windowmanager / intern / wm_init_exit.c
index b0be4bb97209ac20c827c292882473c8160498e0..f32e2afa3e08c6cc601a40187603c51b89ee832d 100644 (file)
@@ -61,8 +61,9 @@
 #include "BKE_sequencer.h" /* free seq clipboard */
 #include "BKE_material.h" /* clear_matcopybuf */
 
-#include "BLI_blenlib.h"
-#include "BLI_winstuff.h"
+#include "BLI_listbase.h"
+#include "BLI_string.h"
+#include "BLI_utildefines.h"
 
 #include "RE_engine.h"
 #include "RE_pipeline.h"               /* RE_ free stuff */
@@ -158,7 +159,7 @@ void WM_init(bContext *C, int argc, const char **argv)
        BPY_python_start(argc, argv);
 
        BPY_driver_reset();
-       BPY_app_handlers_reset(); /* causes addon callbacks to be freed [#28068],
+       BPY_app_handlers_reset(FALSE); /* causes addon callbacks to be freed [#28068],
                                   * but this is actually what we want. */
        BPY_modules_load_user(C);
 #else