Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_asset_types.h
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
| * \brief The meta-data of an asset. | * \brief The meta-data of an asset. | ||||
| * By creating and giving this for a data-block (#ID.asset_data), the data-block becomes an asset. | * By creating and giving this for a data-block (#ID.asset_data), the data-block becomes an asset. | ||||
| * | * | ||||
| * \note This struct must be readable without having to read anything but blocks from the ID it is | * \note This struct must be readable without having to read anything but blocks from the ID it is | ||||
| * attached to! That way, asset information of a file can be read, without reading anything | * attached to! That way, asset information of a file can be read, without reading anything | ||||
| * more than that from the file. So pointers to other IDs or ID data are strictly forbidden. | * more than that from the file. So pointers to other IDs or ID data are strictly forbidden. | ||||
| */ | */ | ||||
| typedef struct AssetMetaData { | typedef struct AssetMetaData { | ||||
| /** Runtime type, to reference event callbacks. Only valid for local assets. */ | |||||
| struct AssetTypeInfo *local_type_info; | |||||
| /** Custom asset meta-data. Cannot store pointers to IDs (#STRUCT_NO_DATABLOCK_IDPROPERTIES)! */ | /** Custom asset meta-data. Cannot store pointers to IDs (#STRUCT_NO_DATABLOCK_IDPROPERTIES)! */ | ||||
| struct IDProperty *properties; | struct IDProperty *properties; | ||||
| /** | /** | ||||
| * Asset Catalog identifier. Should not contain spaces. | * Asset Catalog identifier. Should not contain spaces. | ||||
| * Mapped to a path in the asset catalog hierarchy by an #AssetCatalogService. | * Mapped to a path in the asset catalog hierarchy by an #AssetCatalogService. | ||||
| * Use #BKE_asset_metadata_catalog_id_set() to ensure a valid ID is set. | * Use #BKE_asset_metadata_catalog_id_set() to ensure a valid ID is set. | ||||
| */ | */ | ||||
| ▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines | |||||