Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@blender.org>2021-11-19 18:04:24 +0300
committerSybren A. Stüvel <sybren@blender.org>2021-11-19 18:08:55 +0300
commit06ead314b63f068ae9deaed369021b01aa5f1029 (patch)
treeffcc3a555f79b11de214c38f0e565df87204454a /source/blender/blenkernel/BKE_preferences.h
parent33c5e7bcd5e5b790ee95caaa0c4d917996341266 (diff)
Asset Preferences: disallow single file as asset library
Asset libraries should be directories on disk. By manually entering a file path it was possible to have a single blend file as asset library, but that was not a designed-for situation, and it doesn't play well with the asset catalog system.
Diffstat (limited to 'source/blender/blenkernel/BKE_preferences.h')
-rw-r--r--source/blender/blenkernel/BKE_preferences.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_preferences.h b/source/blender/blenkernel/BKE_preferences.h
index fd4d13f4125..e9cb024f117 100644
--- a/source/blender/blenkernel/BKE_preferences.h
+++ b/source/blender/blenkernel/BKE_preferences.h
@@ -42,6 +42,9 @@ void BKE_preferences_asset_library_name_set(struct UserDef *userdef,
struct bUserAssetLibrary *library,
const char *name) ATTR_NONNULL();
+void BKE_preferences_asset_library_path_set(struct bUserAssetLibrary *library, const char *path)
+ ATTR_NONNULL();
+
struct bUserAssetLibrary *BKE_preferences_asset_library_find_from_index(
const struct UserDef *userdef, int index) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT;
struct bUserAssetLibrary *BKE_preferences_asset_library_find_from_name(