From 668b64380a7ef5c5079f436dc145a625af56b402 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Sun, 8 Mar 2020 20:45:00 +0100 Subject: Cleanup: Sound: Move to IDTypeInfo and remove unused BKE API. --- source/blender/blenkernel/intern/lib_id.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source/blender/blenkernel/intern/lib_id.c') diff --git a/source/blender/blenkernel/intern/lib_id.c b/source/blender/blenkernel/intern/lib_id.c index 6db83434cc6..22496f47345 100644 --- a/source/blender/blenkernel/intern/lib_id.c +++ b/source/blender/blenkernel/intern/lib_id.c @@ -515,9 +515,7 @@ bool BKE_lib_id_make_local(Main *bmain, ID *id, const bool test, const int flags BLI_assert(0); return true; case ID_SO: - if (!test) { - BKE_sound_make_local(bmain, (bSound *)id, flags); - } + BLI_assert(0); return true; case ID_GR: BLI_assert(0); @@ -777,7 +775,7 @@ bool BKE_id_copy_ex(Main *bmain, const ID *id, ID **r_newid, const int flag) BKE_cachefile_copy_data(bmain, (CacheFile *)*r_newid, (CacheFile *)id, flag); break; case ID_SO: - BKE_sound_copy_data(bmain, (bSound *)*r_newid, (bSound *)id, flag); + BLI_assert(0); break; case ID_VF: BLI_assert(0); @@ -1360,7 +1358,7 @@ void BKE_libblock_init_empty(ID *id) BLI_assert(0); break; case ID_SO: - /* Another fuzzy case, think NULLified content is OK here... */ + BLI_assert(0); break; case ID_GR: /* Nothing to do. */ -- cgit v1.2.3