Blender Git Commit Log

Git Commits -> Revision 3a32ff8

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.

Commit Details:

Full Hash: 3a32ff8794f168549410adac5d7903d25f051f95
Parent Commit: f823834
Lines Changed: +23, -0

2 Modified Paths:

/source/blender/blenkernel/BKE_preferences.h (+12, -0) (Diff)
/source/blender/blenkernel/intern/preferences.c (+11, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021