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:17:26 +0300
committerJulian Eisel <julian@blender.org>2021-11-03 16:23:53 +0300
commit0d8f1414a21a9c7a3498fd65ce5cd02673582eed (patch)
tree82d0d8a8891da5ff6ab6ef9403b25196579fd057 /source/blender/blenkernel/intern/preferences.c
parentf81190f85f65b292a0f0dfaa0a8d5b0f7fd72c58 (diff)
Fix access to current preferences when version patching read preferences
The version patch for 0cf9794c7ef0 was checking and setting a data name using the macros for translation. These would access the current preferences which can mismatch the ones currently being version patched. See discussion in 0cf9794c7ef0 for details. Don't handle translation in this version patch, which is more of a "nice-to-have" version patch, no functionality depends on it.
Diffstat (limited to 'source/blender/blenkernel/intern/preferences.c')
-rw-r--r--source/blender/blenkernel/intern/preferences.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/preferences.c b/source/blender/blenkernel/intern/preferences.c
index 79a8b591f72..0a10601f751 100644
--- a/source/blender/blenkernel/intern/preferences.c
+++ b/source/blender/blenkernel/intern/preferences.c
@@ -121,7 +121,7 @@ void BKE_preferences_asset_library_default_add(UserDef *userdef)
}
bUserAssetLibrary *library = BKE_preferences_asset_library_add(
- userdef, BKE_PREFS_ASSET_LIBRARY_DEFAULT_NAME, NULL);
+ userdef, DATA_(BKE_PREFS_ASSET_LIBRARY_DEFAULT_NAME), NULL);
/* Add new "Default" library under '[doc_path]/Blender/Assets'. */
BLI_path_join(