From 6af97b84dfa286fc5c8efb2b0536ed1b87f591b0 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Mon, 14 Jan 2019 15:47:11 +0100 Subject: Cleanup: replace usages of deprecated BKE_libblock_free by BKE_id_free. --- source/blender/windowmanager/intern/wm_files_link.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/windowmanager/intern/wm_files_link.c') diff --git a/source/blender/windowmanager/intern/wm_files_link.c b/source/blender/windowmanager/intern/wm_files_link.c index 07ed7a8f59e..d1a189ca44e 100644 --- a/source/blender/windowmanager/intern/wm_files_link.c +++ b/source/blender/windowmanager/intern/wm_files_link.c @@ -747,7 +747,7 @@ static void lib_relocate_do( ID *old_id = item->customdata; if (old_id->us == 0) { - BKE_libblock_free(bmain, old_id); + BKE_id_free(bmain, old_id); } } @@ -760,7 +760,7 @@ static void lib_relocate_do( id_next = id->next; /* XXX That check may be a bit to generic/permissive? */ if (id->lib && (id->flag & LIB_TAG_PRE_EXISTING) && id->us == 0) { - BKE_libblock_free(bmain, id); + BKE_id_free(bmain, id); } } } @@ -782,7 +782,7 @@ static void lib_relocate_do( if (lib->id.tag & LIB_TAG_DOIT) { id_us_clear_real(&lib->id); if (lib->id.us == 0) { - BKE_libblock_free(bmain, (ID *)lib); + BKE_id_free(bmain, (ID *)lib); } } } -- cgit v1.2.3