diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2021-09-27 16:53:05 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2021-09-27 19:10:47 +0300 |
commit | 90aa0a52568c629e466b6ccc513afadd0144ee1e (patch) | |
tree | bd1c2ef7b281e758720ad7e81d249ba36ae72e98 /source/blender/blenkernel/intern/asset_catalog_test.cc | |
parent | aafbe111fc90876d801135f0dc5e01e9742f647a (diff) |
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.
Diffstat (limited to 'source/blender/blenkernel/intern/asset_catalog_test.cc')
0 files changed, 0 insertions, 0 deletions