Blender Git Statistics -> Branches -> temp-asset-browser-catalogs-save-hook

"Temp-asset-browser-catalogs-save-hook" branch

Total commits : 7
Total committers : 1
First Commit : September 27, 2021
Latest Commit : September 27, 2021


Commits by Date

DateNumber of Commits
September 27, 20217

Committers

AuthorNumber of Commits
Sybren A. Stüvel7

Popular Files

FilenameTotal Edits
asset_catalog_test.cc3
BLI_path_util_test.cc2
path_util.c2
BLI_path_util.h1
BKE_asset_catalog.hh1
asset_catalog.cc1
asset_library.cc1
BKE_asset_library.hh1
BKE_preferences.h1
preferences.c1

Latest commits Feed

September 27, 2021, 15:36 (GMT)
Asset Catalog Tests: unnecessary use of temp dir

Remove unnecessary use of temp directories in the Asset Catalog unit
tests, so that the test doesn't try and clean up a directory that
doesn't exist.
September 27, 2021, 15:29 (GMT)
Another fix for BLI_path_contains on Windows
September 27, 2021, 15:18 (GMT)
Hopefully fix asset catalog test on Windows
September 27, 2021, 15:18 (GMT)
Hopefully fix `BLI_path_contains()` on Windows
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.
September 27, 2021, 14:03 (GMT)
BKE Preferences: find asset library containing a path

Add `BKE_preferences_asset_library_containing_path(&U, some_path)` that
finds the asset library that contains the given path.

This is a simple linear search, returning the first asset library that
matches. There is no smartness when it comes to nested asset libraries
(like returning the library with the best-matching path), although this
could be a useful feature to add later.
September 27, 2021, 14:03 (GMT)
BLI Path: add function `BLI_path_contains()`

Add function `BLI_path_contains(container, containee)` that returns true
if and only `container` contains `containee`.

Paths are normalised and converted to native path separators before
comparing. Relative paths are *not* made absolute, to simplify the
function call; if this is necessary the caller has to do this conversion
first.

MiikaHweb - Blender Git Statistics v1.06
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021