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

This commit is contained in:
2020-03-08 20:10:07 +01:00
parent 0d05fd9b4c
commit 014f78b5b5
6 changed files with 37 additions and 48 deletions

View File

@@ -500,9 +500,7 @@ bool BKE_lib_id_make_local(Main *bmain, ID *id, const bool test, const int flags
BLI_assert(0);
return true;
case ID_SPK:
if (!test) {
BKE_speaker_make_local(bmain, (Speaker *)id, flags);
}
BLI_assert(0);
return true;
case ID_LP:
BLI_assert(0);
@@ -720,7 +718,7 @@ bool BKE_id_copy_ex(Main *bmain, const ID *id, ID **r_newid, const int flag)
BLI_assert(0);
break;
case ID_SPK:
BKE_speaker_copy_data(bmain, (Speaker *)*r_newid, (Speaker *)id, flag);
BLI_assert(0);
break;
case ID_LP:
BLI_assert(0);
@@ -1341,7 +1339,7 @@ void BKE_libblock_init_empty(ID *id)
BLI_assert(0);
break;
case ID_SPK:
BKE_speaker_init((Speaker *)id);
BLI_assert(0);
break;
case ID_LP:
BLI_assert(0);