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-03-04 09:43:11 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-03-04 09:43:11 +0300
commit753a2a34cea70b0ffc8d8e7c44def24ccd3b6fc9 (patch)
treea8d94ed2b4c4f4eb417ccbef51bbad5c82661109
parent12b529b3a675ea69408c5eea84d2329ef156d407 (diff)
Cleanup: include '--open-last' in "Misc Options"
This was using fall-back category "Other Options" which should be kept empty.
-rw-r--r--source/creator/creator_args.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c
index 9133b259a13..e35fce3160f 100644
--- a/source/creator/creator_args.c
+++ b/source/creator/creator_args.c
@@ -610,6 +610,7 @@ static int arg_handle_print_help(int UNUSED(argc), const char **UNUSED(argv), vo
printf("\n");
printf("Misc Options:\n");
+ BLI_args_print_arg_doc(ba, "--open-last");
BLI_args_print_arg_doc(ba, "--app-template");
BLI_args_print_arg_doc(ba, "--factory-startup");
BLI_args_print_arg_doc(ba, "--enable-event-simulate");
@@ -2008,7 +2009,7 @@ static int arg_handle_load_last_file(int UNUSED(argc), const char **UNUSED(argv)
const RecentFile *recent_file = G.recent_files.first;
const char *fake_argv[] = {recent_file->filepath};
- return arg_handle_load_file(1, fake_argv, data);
+ return arg_handle_load_file(ARRAY_SIZE(fake_argv), fake_argv, data);
}
void main_args_setup(bContext *C, bArgs *ba)