Blender Git Commit Log

Git Commits -> Revision cc6a350

Revision cc6a350 by Sybren A. Stüvel (master)
October 7, 2021, 15:04 (GMT)
Asset Catalogs: change rules for saving catalog definition files

Change the rules for determining where to save a new catalog definition
file (CDF).

Old situation (T91681): if a `blender_assets.cats.txt` file already
exists in the same directory as the blend file, write to that. If not,
see if the blend file is contained in an asset library, and write to its
top-level CDF.

The new situation swaps the rules: first see if the blend file is
contained in an asset library, and if so write to its top-level CDF. If
not, write a CDF next to the blend file.

As before, any pre-existing CDF is not just bluntly overwritten, but
merged with the in-memory catalogs.

Commit Details:

Full Hash: cc6a3509a05b227f554fdb9a3cfef90a1de273b4
Parent Commit: 1de922f
Lines Changed: +98, -62

2 Modified Paths:

/source/blender/blenkernel/intern/asset_catalog.cc (+15, -19) (Diff)
/source/blender/blenkernel/intern/asset_catalog_test.cc (+83, -43) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021