Blender Git Commit Log
Git Commits -> Revision b661536
Revision b661536 by Sybren A. Stüvel (temp-asset-browser-catalogs, temp-asset-browser-catalogs-ui, temp-assetlib-plus-uuid-rename) September 21, 2021, 08:30 (GMT) |
Asset Catalogs: move from string identifier to UUIDs Move from a string `catalog_id` to a UUID. This avoids having to keep the ID of the catalog in sync with its semantics (so renaming from X to Y can keep the UUID the same). Since UUIDs don't communicate any human-readable information, the mapping from catalog UUID to its path (stored in the Catalog Definition File, CDF) is critical for understanding which asset is stored in which human-readable catalog. To make this less critical, and to allow manual data reconstruction after a CDF is lost/corrupted, each catalog also has a "simple name" that's stored along with the UUID. This is also stored on each asset, next to the catalog UUID. |
Commit Details:
Full Hash: b6615366364a116e9231db8deb1917104b45d08b
Parent Commit: e7e1402
Lines Changed: +290, -80
13 Modified Paths:
/release/scripts/startup/bl_ui/space_filebrowser.py (+10, -3) (Diff)
/source/blender/blenkernel/BKE_asset.h (+6, -1) (Diff)
/source/blender/blenkernel/BKE_asset_catalog.hh (+12, -5) (Diff)
/source/blender/blenkernel/intern/asset.cc (+17, -8) (Diff)
/source/blender/blenkernel/intern/asset_catalog.cc (+56, -17) (Diff)
/source/blender/blenkernel/intern/asset_catalog_test.cc (+53, -24) (Diff)
/source/blender/blenkernel/intern/asset_library_test.cc (+2, -1) (Diff)
/source/blender/blenkernel/intern/asset_test.cc (+24, -14) (Diff)
/source/blender/blenlib/BLI_uuid.h (+15, -0) (Diff)
/source/blender/blenlib/intern/uuid.cc (+32, -0) (Diff)
/source/blender/makesdna/DNA_asset_types.h (+8, -1) (Diff)
/source/blender/makesdna/DNA_uuid_types.h (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_asset.c (+49, -6) (Diff)
/source/blender/blenkernel/BKE_asset.h (+6, -1) (Diff)
/source/blender/blenkernel/BKE_asset_catalog.hh (+12, -5) (Diff)
/source/blender/blenkernel/intern/asset.cc (+17, -8) (Diff)
/source/blender/blenkernel/intern/asset_catalog.cc (+56, -17) (Diff)
/source/blender/blenkernel/intern/asset_catalog_test.cc (+53, -24) (Diff)
/source/blender/blenkernel/intern/asset_library_test.cc (+2, -1) (Diff)
/source/blender/blenkernel/intern/asset_test.cc (+24, -14) (Diff)
/source/blender/blenlib/BLI_uuid.h (+15, -0) (Diff)
/source/blender/blenlib/intern/uuid.cc (+32, -0) (Diff)
/source/blender/makesdna/DNA_asset_types.h (+8, -1) (Diff)
/source/blender/makesdna/DNA_uuid_types.h (+6, -0) (Diff)
/source/blender/makesrna/intern/rna_asset.c (+49, -6) (Diff)