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:
authorJulian Eisel <julian@blender.org>2021-11-03 16:24:33 +0300
committerJulian Eisel <julian@blender.org>2021-11-03 16:24:33 +0300
commit2a883432138d15f746dccaa703c50e483189e138 (patch)
treed9c2c66f74e35f96ef130033de18cc0ebd971e82 /source/blender/blenloader
parent04d35f9315065745a53423fd3c694582c6cd3420 (diff)
parent0d8f1414a21a9c7a3498fd65ce5cd02673582eed (diff)
Merge branch 'blender-v3.0-release'
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_userdef.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c
index 4234570af6c..3c470a7d3df 100644
--- a/source/blender/blenloader/intern/versioning_userdef.c
+++ b/source/blender/blenloader/intern/versioning_userdef.c
@@ -927,9 +927,13 @@ void blo_do_versions_userdef(UserDef *userdef)
}
if (!USER_VERSION_ATLEAST(300, 40)) {
- /* Rename the default asset library from "Default" to "User Library" */
+ /* Rename the default asset library from "Default" to "User Library". This isn't bullet proof
+ * since it doesn't handle translations and ignores user changes. But this was an alpha build
+ * (experimental) feature and the name is just for display in the UI anyway. So it doesn't have
+ * to work perfectly at all. */
LISTBASE_FOREACH (bUserAssetLibrary *, asset_library, &userdef->asset_libraries) {
- if (STREQ(asset_library->name, DATA_("Default"))) {
+ /* Ignores translations, since that would depend on the current preferences (global `U`). */
+ if (STREQ(asset_library->name, "Default")) {
BKE_preferences_asset_library_name_set(
userdef, asset_library, BKE_PREFS_ASSET_LIBRARY_DEFAULT_NAME);
}