ID-Remap - Step one: core work (cleanup and rework of generic ID datablock handling).
[blender.git] / source / blender / windowmanager / intern / wm_init_exit.c
index 917e2bf5913c9aa9a366ed95b3d1b4b02e0dc231..a1ca89c6a8ce12e66bece1f56f2c01ed67f0f7cb 100644 (file)
@@ -61,6 +61,7 @@
 #include "BKE_global.h"
 #include "BKE_icons.h"
 #include "BKE_library.h"
+#include "BKE_library_remap.h"
 #include "BKE_main.h"
 #include "BKE_mball_tessellate.h"
 #include "BKE_node.h"
@@ -160,9 +161,9 @@ void WM_init(bContext *C, int argc, const char **argv)
 
        BKE_library_callback_free_window_manager_set(wm_close_and_free);   /* library.c */
        BKE_library_callback_free_notifier_reference_set(WM_main_remove_notifier_reference);   /* library.c */
-       BKE_library_callback_free_editor_id_reference_set(WM_main_remove_editor_id_reference);   /* library.c */
+       BKE_library_callback_remap_editor_id_reference_set(WM_main_remap_editor_id_reference);   /* library.c */
        BKE_blender_callback_test_break_set(wm_window_testbreak); /* blender.c */
-       BKE_spacedata_callback_id_unref_set(ED_spacedata_id_unref); /* screen.c */
+       BKE_spacedata_callback_id_remap_set(ED_spacedata_id_remap); /* screen.c */
        DAG_editors_update_cb(ED_render_id_flush_update,
                              ED_render_scene_update,
                              ED_render_scene_update_pre); /* depsgraph.c */