Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_asset_types.h
| Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
| * \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 { | ||||
| /** 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. | |||||
| * 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. | |||||
| */ | |||||
| char catalog_id[64]; /* MAX_NAME */ | |||||
| /** Optional description of this asset for display in the UI. Dynamic length. */ | /** Optional description of this asset for display in the UI. Dynamic length. */ | ||||
| char *description; | char *description; | ||||
| /** User defined tags for this asset. The asset manager uses these for filtering, but how they | /** User defined tags for this asset. The asset manager uses these for filtering, but how they | ||||
| * function exactly (e.g. how they are registered to provide a list of searchable available tags) | * function exactly (e.g. how they are registered to provide a list of searchable available tags) | ||||
| * is up to the asset-engine. */ | * is up to the asset-engine. */ | ||||
| ListBase tags; /* AssetTag */ | ListBase tags; /* AssetTag */ | ||||
| short active_tag; | short active_tag; | ||||
| /** Store the number of tags to avoid continuous counting. Could be turned into runtime data, we | /** Store the number of tags to avoid continuous counting. Could be turned into runtime data, we | ||||
| ▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines | |||||