Blender
V3.3
|
Go to the source code of this file.
Classes | |
struct | AssetTypeInfo |
struct | AssetTagEnsureResult |
Typedefs | |
typedef void(* | PreSaveFn) (void *asset_ptr, struct AssetMetaData *asset_data) |
typedef struct AssetTypeInfo | AssetTypeInfo |
typedef struct AssetTypeInfo AssetTypeInfo |
typedef void(* PreSaveFn) (void *asset_ptr, struct AssetMetaData *asset_data) |
Definition at line 26 of file BKE_asset.h.
void BKE_asset_library_reference_init_default | ( | struct AssetLibraryReference * | library_ref | ) |
Definition at line 99 of file asset.cc.
References DNA_struct_default_get.
Referenced by blo_do_versions_300(), and workspace_init_data().
void BKE_asset_metadata_catalog_id_clear | ( | struct AssetMetaData * | asset_data | ) |
Clean up the catalog ID (white-spaces removed, length reduced, etc.) and assign it.
Definition at line 104 of file asset.cc.
References BLI_uuid_nil(), AssetMetaData::catalog_id, and AssetMetaData::catalog_simple_name.
Referenced by blender::bke::tests::TEST().
void BKE_asset_metadata_catalog_id_set | ( | struct AssetMetaData * | asset_data, |
bUUID | catalog_id, | ||
const char * | catalog_simple_name | ||
) |
struct AssetMetaData* BKE_asset_metadata_create | ( | void | ) |
Definition at line 28 of file asset.cc.
References DNA_struct_default_get, and MEM_callocN.
Referenced by ED_asset_mark_id(), and blender::ed::asset::index::init_indexer_entry_from_value().
void BKE_asset_metadata_free | ( | struct AssetMetaData ** | asset_data | ) |
Definition at line 35 of file asset.cc.
References BLI_freelistN(), IDP_FreeProperty(), and MEM_SAFE_FREE.
Referenced by BKE_lib_id_clear_library_data(), BKE_libblock_free_data(), ED_asset_clear_id(), and filelist_intern_entry_free().
void BKE_asset_metadata_idprop_ensure | ( | struct AssetMetaData * | asset_data, |
struct IDProperty * | prop | ||
) |
Definition at line 125 of file asset.cc.
References IDP_GROUP, IDP_New(), IDP_ReplaceInGroup(), and AssetMetaData::properties.
Referenced by action_asset_pre_save(), and object_asset_pre_save().
struct IDProperty* BKE_asset_metadata_idprop_find | ( | const struct AssetMetaData * | asset_data, |
const char * | name | ||
) |
Referenced by view3d_ob_drop_draw_activate().
struct PreviewImage* BKE_asset_metadata_preview_get_from_id | ( | const struct AssetMetaData * | asset_data, |
const struct ID * | owner_id | ||
) |
Referenced by filelist_readjob_main_assets_add_items().
void BKE_asset_metadata_read | ( | struct BlendDataReader * | reader, |
struct AssetMetaData * | asset_data | ||
) |
Definition at line 173 of file asset.cc.
References AssetMetaData::author, BLI_assert, BLI_listbase_count(), BLO_read_data_address, BLO_read_list(), AssetMetaData::description, IDP_BlendDataRead, AssetMetaData::local_type_info, AssetMetaData::properties, AssetMetaData::tags, and AssetMetaData::tot_tags.
Referenced by blo_read_asset_data_block(), and direct_link_id_common().
struct AssetTag* BKE_asset_metadata_tag_add | ( | struct AssetMetaData * | asset_data, |
const char * | name | ||
) |
Definition at line 60 of file asset.cc.
References asset_metadata_tag_add(), BLI_uniquename(), AssetTag::name, and AssetMetaData::tags.
Referenced by blender::ed::asset::index::AssetEntryReader::add_tags_to_meta_data().
struct AssetTagEnsureResult BKE_asset_metadata_tag_ensure | ( | struct AssetMetaData * | asset_data, |
const char * | name | ||
) |
void BKE_asset_metadata_tag_remove | ( | struct AssetMetaData * | asset_data, |
struct AssetTag * | tag | ||
) |
Definition at line 90 of file asset.cc.
References BLI_assert, BLI_findindex(), BLI_freelinkN(), BLI_listbase_count(), AssetTagEnsureResult::tag, AssetMetaData::tags, and AssetMetaData::tot_tags.
void BKE_asset_metadata_write | ( | struct BlendWriter * | writer, |
struct AssetMetaData * | asset_data | ||
) |
Definition at line 154 of file asset.cc.
References AssetMetaData::author, BLO_write_string(), BLO_write_struct, AssetMetaData::description, IDP_BlendWrite(), LISTBASE_FOREACH, AssetMetaData::properties, AssetTagEnsureResult::tag, and AssetMetaData::tags.
Referenced by BKE_id_blend_write().