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:
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r--source/blender/src/header_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c
index ed4d2a546b4..b948dbc921c 100644
--- a/source/blender/src/header_info.c
+++ b/source/blender/src/header_info.c
@@ -924,7 +924,7 @@ static uiBlock *info_openrecentmenu(void *arg_unused)
menuwidth, 19, NULL, 0.0, 0.0, 1, 0, "");
}
- for (recent = G.recent_files.first, i=0; i<10 && recent; recent = recent->next, i++) {
+ for (recent = G.recent_files.first, i=0; i<U.recent_files && recent; recent = recent->next, i++) {
if (strcmp(recent->filename, G.sce)!=0) {
uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, recent->filename, 0, yco-=20,
menuwidth, 19, NULL, 0.0, 0.0, 1, i+1, "");