Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/lib_id_delete.c
| Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | void BKE_libblock_free_datablock(ID *id, const int UNUSED(flag)) | ||||
| if (idtype_info != NULL) { | if (idtype_info != NULL) { | ||||
| if (idtype_info->free_data != NULL) { | if (idtype_info->free_data != NULL) { | ||||
| idtype_info->free_data(id); | idtype_info->free_data(id); | ||||
| } | } | ||||
| return; | return; | ||||
| } | } | ||||
| BLI_assert(!"IDType Missing IDTypeInfo"); | BLI_assert_msg(0, "IDType Missing IDTypeInfo"); | ||||
| } | } | ||||
| /** | /** | ||||
| * Complete ID freeing, extended version for corner cases. | * Complete ID freeing, extended version for corner cases. | ||||
| * Can override default (and safe!) freeing process, to gain some speed up. | * Can override default (and safe!) freeing process, to gain some speed up. | ||||
| * | * | ||||
| * At that point, given id is assumed to not be used by any other data-block already | * At that point, given id is assumed to not be used by any other data-block already | ||||
| * (might not be actually true, in case e.g. several inter-related IDs get freed together...). | * (might not be actually true, in case e.g. several inter-related IDs get freed together...). | ||||
| ▲ Show 20 Lines • Show All 314 Lines • Show Last 20 Lines | |||||