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:
authorCampbell Barton <ideasman42@gmail.com>2021-04-21 10:43:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-04-21 10:43:55 +0300
commit79d2f2c2f9a9d3266c5d44876932a25fe0bdb3b1 (patch)
treed5a4f072353039dfbb03c6e56c83e248aea2287e /source/blender/blenloader
parentf9867c1f119a1e3430b867ca0a51ec63c6e0d29f (diff)
parenta6cd20716e61afe6116aa2e98ef0c3465e142659 (diff)
Merge branch 'blender-v2.93-release'
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_userdef.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_userdef.c b/source/blender/blenloader/intern/versioning_userdef.c
index 847b10192f8..be3834faa5a 100644
--- a/source/blender/blenloader/intern/versioning_userdef.c
+++ b/source/blender/blenloader/intern/versioning_userdef.c
@@ -24,6 +24,7 @@
#include "BLI_listbase.h"
#include "BLI_math.h"
+#include "BLI_string.h"
#include "BLI_utildefines.h"
#ifdef WITH_INTERNATIONAL
@@ -841,6 +842,23 @@ void blo_do_versions_userdef(UserDef *userdef)
}
}
+ if (!USER_VERSION_ATLEAST(293, 1)) {
+ /* This rename was made after 2.93.0, harmless to run when it's not needed. */
+ const char *replace_table[][2] = {
+ {"blender", "Blender"},
+ {"blender_27x", "Blender_27x"},
+ {"industry_compatible", "Industry_Compatible"},
+ };
+ const int replace_table_len = ARRAY_SIZE(replace_table);
+
+ BLI_str_replace_table_exact(
+ userdef->keyconfigstr, sizeof(userdef->keyconfigstr), replace_table, replace_table_len);
+ LISTBASE_FOREACH (wmKeyConfigPref *, kpt, &userdef->user_keyconfig_prefs) {
+ BLI_str_replace_table_exact(
+ kpt->idname, sizeof(kpt->idname), replace_table, replace_table_len);
+ }
+ }
+
if (!USER_VERSION_ATLEAST(293, 2)) {
/* Enable asset browser features by default for alpha testing.
* BLO_sanitize_experimental_features_userpref_blend() will disable it again for non-alpha