Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/makesdna/DNA_asset_types.h')
-rw-r--r--source/blender/makesdna/DNA_asset_types.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_asset_types.h b/source/blender/makesdna/DNA_asset_types.h
index 2975915eccd..f5bdad3e79e 100644
--- a/source/blender/makesdna/DNA_asset_types.h
+++ b/source/blender/makesdna/DNA_asset_types.h
@@ -22,6 +22,7 @@
#include "DNA_defs.h"
#include "DNA_listBase.h"
+#include "DNA_uuid_types.h"
#ifdef __cplusplus
extern "C" {
@@ -58,6 +59,19 @@ typedef struct AssetMetaData {
/** Custom asset meta-data. Cannot store pointers to IDs (#STRUCT_NO_DATABLOCK_IDPROPERTIES)! */
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.
+ */
+ struct bUUID catalog_id;
+ /**
+ * Short name of the asset's catalog. This is for debugging purposes only, to allow (partial)
+ * reconstruction of asset catalogs in the unfortunate case that the mapping from catalog UUID to
+ * catalog path is lost. The catalog's simple name is copied to #catalog_simple_name whenever
+ * #catalog_id is updated. */
+ char catalog_simple_name[64]; /* MAX_NAME */
+
/** Optional description of this asset for display in the UI. Dynamic length. */
char *description;
/** User defined tags for this asset. The asset manager uses these for filtering, but how they