diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-10-28 04:58:27 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-10-28 06:04:44 +0300 |
commit | c518cd73cdba971f27943f491cdb3525ddcf3176 (patch) | |
tree | 7786d751831c30d64056bd8fa4c4f2f5bd1dd4fd /source/creator/creator_intern.h | |
parent | 6ac46c9708f46f9dd83dd36008d6f7c9569b74eb (diff) |
Cleanup: use enum for command line argument passes
Diffstat (limited to 'source/creator/creator_intern.h')
-rw-r--r-- | source/creator/creator_intern.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/creator/creator_intern.h b/source/creator/creator_intern.h index 7ff3247e17e..fe8f8c4e20e 100644 --- a/source/creator/creator_intern.h +++ b/source/creator/creator_intern.h @@ -52,6 +52,21 @@ struct ApplicationState { }; extern struct ApplicationState app_state; /* creator.c */ +/** + * Passes for use by #main_args_setup. + * Keep in order of execution. + */ +enum { + ARG_PASS_ENVIRONMENT = 0, + ARG_PASS_SETTINGS = 1, + /** Windowing & graphical settings, ignored in background mode. */ + ARG_PASS_SETTINGS_GUI = 2, + ARG_PASS_SETTINGS_FORCE = 3, + + /** Actions & fall back to loading blend file. */ + ARG_PASS_FINAL = 4, +}; + /* for the callbacks: */ #ifndef WITH_PYTHON_MODULE # define BLEND_VERSION_FMT "Blender %d.%02d.%d" |