diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-01-14 17:47:11 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-01-15 13:09:16 +0300 |
commit | 6af97b84dfa286fc5c8efb2b0536ed1b87f591b0 (patch) | |
tree | d335327ddcf6d5d2a4c1a4ecdb3de0034f6b4ab4 /source/blender/windowmanager/intern/wm_files_link.c | |
parent | 2f39ca38437d94a63ba020ef110b413ee3f7894b (diff) |
Cleanup: replace usages of deprecated BKE_libblock_free by BKE_id_free.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_files_link.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_files_link.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } } |