Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/lib_id_delete.c
| Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | if (id->override_library) { | ||||
| BKE_lib_override_library_free(&id->override_library, do_id_user); | BKE_lib_override_library_free(&id->override_library, do_id_user); | ||||
| id->override_library = NULL; | id->override_library = NULL; | ||||
| } | } | ||||
| if (id->asset_data) { | if (id->asset_data) { | ||||
| BKE_asset_metadata_free(&id->asset_data); | BKE_asset_metadata_free(&id->asset_data); | ||||
| } | } | ||||
| if (id->library_weak_reference != NULL) { | |||||
| MEM_freeN(id->library_weak_reference); | |||||
| } | |||||
| BKE_animdata_free(id, do_id_user); | BKE_animdata_free(id, do_id_user); | ||||
| } | } | ||||
| void BKE_libblock_free_datablock(ID *id, const int UNUSED(flag)) | void BKE_libblock_free_datablock(ID *id, const int UNUSED(flag)) | ||||
| { | { | ||||
| const IDTypeInfo *idtype_info = BKE_idtype_get_info_from_id(id); | const IDTypeInfo *idtype_info = BKE_idtype_get_info_from_id(id); | ||||
| if (idtype_info != NULL) { | if (idtype_info != NULL) { | ||||
| ▲ Show 20 Lines • Show All 348 Lines • Show Last 20 Lines | |||||