Blender Git Loki

Git Commits -> Revision 320d2b2

September 21, 2021, 15:48 (GMT)
Asset Catalogs: defer writing of catalog definitions

Instead of writing the catalog definition file (CDF) immediately after
creating a new catalog, wait until the `write_to_disk(...)` function is
called.

As a result, it's now also possible to create an `AssetCatalogService`
without passing it an asset library root path (for example when creating
catalogs in a not-yet-saved blend file and without having an asset
library opened/configured/selected).

Commit Details:

Full Hash: 320d2b2192eb1c16989182ca2e42e81834479c62
Parent Commit: f137c3c
Lines Changed: +143, -83

3 Modified Paths:

/source/blender/blenkernel/BKE_asset_catalog.hh (+8, -9) (Diff)
/source/blender/blenkernel/intern/asset_catalog.cc (+83, -51) (Diff)
/source/blender/blenkernel/intern/asset_catalog_test.cc (+52, -23) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021