UI: Increase the size of the "Open Recent" list #105703

Merged
Harley Acheson merged 2 commits from Harley/blender:Recent20 into main 2023-03-15 17:09:48 +01:00
3 changed files with 9 additions and 2 deletions

View File

@ -128,7 +128,7 @@ const UserDef U_default = {
.pad_rot_angle = 15,
.rvisize = 25,
.rvibright = 8,
.recent_files = 10,
.recent_files = 20,
.smooth_viewtx = 200,
.glreslimit = 0,
.color_picker_type = USER_CP_CIRCLE_HSV,

View File

@ -25,7 +25,7 @@ extern "C" {
/* Blender file format version. */
#define BLENDER_FILE_VERSION BLENDER_VERSION
#define BLENDER_FILE_SUBVERSION 3
#define BLENDER_FILE_SUBVERSION 4
/* Minimum Blender version that supports reading file written with the current
* version. Older Blender versions will test this and show a warning if the file

View File

@ -791,6 +791,13 @@ void blo_do_versions_userdef(UserDef *userdef)
userdef->animation_flag |= USER_ANIM_HIGH_QUALITY_DRAWING;
}
if (!USER_VERSION_ATLEAST(306, 4)) {
/* Increase the number of recently-used files if using the old default value. */
if (userdef->recent_files == 10) {
userdef->recent_files = 20;
}
}
/**
* Versioning code until next subversion bump goes here.
*