Fix: Apply correct version bump for previous change

66bbdeba77 applied the versioning change
in the past to the wrong number as part of testing for the 4.3 branch.
This commit updates it and the version in main to be the correct value.

Pull Request: https://projects.blender.org/blender/blender/pulls/131259
This commit is contained in:
Sean Kim
2024-12-02 21:04:49 +01:00
committed by Sean Kim
parent 798a48f6ef
commit ed5bcf06b5
2 changed files with 18 additions and 19 deletions

View File

@@ -31,7 +31,7 @@ extern "C" {
/* Blender file format version. */
#define BLENDER_FILE_VERSION BLENDER_VERSION
#define BLENDER_FILE_SUBVERSION 8
#define BLENDER_FILE_SUBVERSION 9
/* Minimum Blender version that supports reading file written with the current
* version. Older Blender versions will test this and cancel loading the file, showing a warning to

View File

@@ -1357,24 +1357,6 @@ void blo_do_versions_userdef(UserDef *userdef)
userdef->sequencer_editor_flag |= USER_SEQ_ED_CONNECT_STRIPS_BY_DEFAULT;
}
if (!USER_VERSION_ATLEAST(403, 33)) {
LISTBASE_FOREACH (wmKeyMap *, keymap, &userdef->user_keymaps) {
if (STREQ("Sculpt", keymap->idname)) {
keymap_update_mesh_sculpt_brushes(keymap);
}
else if (STREQ("Vertex Paint", keymap->idname)) {
keymap_update_mesh_vertex_paint_brushes(keymap);
}
else if (STREQ("Weight Paint", keymap->idname)) {
keymap_update_mesh_weight_paint_brushes(keymap);
}
else if (STREQ("Image Paint", keymap->idname)) {
keymap_update_mesh_texture_paint_brushes(keymap);
}
}
}
if (!USER_VERSION_ATLEAST(404, 3)) {
userdef->uiflag &= ~USER_FILTER_BRUSHES_BY_TOOL;
@@ -1393,6 +1375,23 @@ void blo_do_versions_userdef(UserDef *userdef)
userdef, "VIEW3D_AST_brush_gpencil_sculpt", "Brushes/Grease Pencil Sculpt/Utilities");
}
if (!USER_VERSION_ATLEAST(404, 9)) {
LISTBASE_FOREACH (wmKeyMap *, keymap, &userdef->user_keymaps) {
if (STREQ("Sculpt", keymap->idname)) {
keymap_update_mesh_sculpt_brushes(keymap);
}
else if (STREQ("Vertex Paint", keymap->idname)) {
keymap_update_mesh_vertex_paint_brushes(keymap);
}
else if (STREQ("Weight Paint", keymap->idname)) {
keymap_update_mesh_weight_paint_brushes(keymap);
}
else if (STREQ("Image Paint", keymap->idname)) {
keymap_update_mesh_texture_paint_brushes(keymap);
}
}
}
/**
* Always bump subversion in BKE_blender_version.h when adding versioning
* code here, and wrap it inside a USER_VERSION_ATLEAST check.