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:
authorSybren A. Stüvel <sybren@blender.org>2021-10-12 18:53:05 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-10-12 19:07:58 +0300
commita6da1884ba9f4d3d37c98b48bc18a8d26dd489fc (patch)
tree5879311a882714ff4ca5fb45dfc141068509a866 /source/blender/blenkernel/BKE_asset_library.h
parent5e3877e0c8560f27a5cd7b303666b235fb148165 (diff)
Asset Catalogs: Refresh catalog simple name when assigning catalog ID
When assigning a new catalog ID to an asset, also refresh the "catalog simple name". This "simple name" is stored on the asset metadata next to the catalog UUID, to allow some emergency data recovery when the catalog definition file is somehow lost.
Diffstat (limited to 'source/blender/blenkernel/BKE_asset_library.h')
-rw-r--r--source/blender/blenkernel/BKE_asset_library.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_asset_library.h b/source/blender/blenkernel/BKE_asset_library.h
index 3ddfbb1415e..70949f40430 100644
--- a/source/blender/blenkernel/BKE_asset_library.h
+++ b/source/blender/blenkernel/BKE_asset_library.h
@@ -69,6 +69,10 @@ bool BKE_asset_library_find_suitable_root_path_from_path(
bool BKE_asset_library_find_suitable_root_path_from_main(
const struct Main *bmain, char r_library_path[768 /* FILE_MAXDIR */]);
+/** Look up the asset's catalog and copy its simple name into #asset_data. */
+void BKE_asset_library_refresh_catalog_simplename(struct AssetLibrary *asset_library,
+ struct AssetMetaData *asset_data);
+
#ifdef __cplusplus
}
#endif