[Bf-blender-cvs] [753a2a34cea] master: Cleanup: include '--open-last' in "Misc Options"

Campbell Barton noreply at git.blender.org
Thu Mar 4 07:44:03 CET 2021


Commit: 753a2a34cea70b0ffc8d8e7c44def24ccd3b6fc9
Author: Campbell Barton
Date:   Thu Mar 4 17:43:11 2021 +1100
Branches: master
https://developer.blender.org/rB753a2a34cea70b0ffc8d8e7c44def24ccd3b6fc9

Cleanup: include '--open-last' in "Misc Options"

This was using fall-back category "Other Options"
which should be kept empty.

===================================================================

M	source/creator/creator_args.c

===================================================================

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)



More information about the Bf-blender-cvs mailing list