Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/asset.cc
| Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| BLI_assert(BLI_findindex(&asset_data->tags, tag) >= 0); | BLI_assert(BLI_findindex(&asset_data->tags, tag) >= 0); | ||||
| BLI_freelinkN(&asset_data->tags, tag); | BLI_freelinkN(&asset_data->tags, tag); | ||||
| asset_data->tot_tags--; | asset_data->tot_tags--; | ||||
| /* Invariant! */ | /* Invariant! */ | ||||
| BLI_assert(BLI_listbase_count(&asset_data->tags) == asset_data->tot_tags); | BLI_assert(BLI_listbase_count(&asset_data->tags) == asset_data->tot_tags); | ||||
| } | } | ||||
| void BKE_asset_library_reference_init_default(AssetLibraryReference *library_ref) | |||||
| { | |||||
| memcpy(library_ref, DNA_struct_default_get(AssetLibraryReference), sizeof(*library_ref)); | |||||
| } | |||||
| /* Queries -------------------------------------------- */ | /* Queries -------------------------------------------- */ | ||||
| PreviewImage *BKE_asset_metadata_preview_get_from_id(const AssetMetaData *UNUSED(asset_data), | PreviewImage *BKE_asset_metadata_preview_get_from_id(const AssetMetaData *UNUSED(asset_data), | ||||
| const ID *id) | const ID *id) | ||||
| { | { | ||||
| return BKE_previewimg_id_get(id); | return BKE_previewimg_id_get(id); | ||||
| } | } | ||||
| Show All 31 Lines | |||||