Cleanup: Sound: Move to IDTypeInfo and remove unused BKE API.

This commit is contained in:
2020-03-08 20:45:00 +01:00
parent 014f78b5b5
commit 668b64380a
6 changed files with 75 additions and 75 deletions

View File

@@ -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. */