Blender Git Loki

Git Commits -> Revision 23982bd

September 27, 2021, 14:03 (GMT)
Asset Catalogs: write catalogs to disk when saving the blend file

The Asset Catalog Definition File is now saved whenever the blend file
is saved. The location of the CDF depends on where the blend file is
saved, and whether previously a CDF was already loaded, according to the
following rules. The first matching rule wins:

1. Already loaded a CDF from disk? -> Always write to that file.
2. The directory containing the blend file has a
`blender_assets.cats.txt` file? -> Merge with & write to that file.
3. The directory containing the blend file is part of an asset library,
as per the user's preferences? -> Merge with & write to
`${ASSET_LIBRARY_ROOT}/blender_assets.cats.txt`
4. Create a new file `blender_assets.cats.txt` next to the blend file.

Commit Details:

Full Hash: 23982bd6f00a7873feee95f5e7203e23f8fa95f5
Parent Commit: 3a32ff8
Lines Changed: +294, -4

5 Modified Paths:

/source/blender/blenkernel/BKE_asset_catalog.hh (+28, -0) (Diff)
/source/blender/blenkernel/BKE_asset_library.hh (+9, -0) (Diff)
/source/blender/blenkernel/intern/asset_catalog.cc (+62, -0) (Diff)
/source/blender/blenkernel/intern/asset_catalog_test.cc (+153, -4) (Diff)
/source/blender/blenkernel/intern/asset_library.cc (+42, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021