Cleanup: Collection: Move to IDTypeInfo, and remove unused BKE API.

Note: we still need BKE_collection_free since we call it from scene.c.
This commit is contained in:
2020-03-06 15:17:47 +01:00
parent 69d4aec55f
commit 17f08cff6a
6 changed files with 80 additions and 67 deletions

View File

@@ -200,7 +200,7 @@ void BKE_libblock_free_datablock(ID *id, const int UNUSED(flag))
BKE_sound_free((bSound *)id);
break;
case ID_GR:
BKE_collection_free((Collection *)id);
BLI_assert(0);
break;
case ID_AR:
BKE_armature_free((bArmature *)id);