forked from bartvdbraak/blender
Cleanup: update comments
Some references to argument levels were still in comments.
This commit is contained in:
parent
a0f2866a8e
commit
1be819ea66
@ -411,7 +411,8 @@ int main(int argc,
|
|||||||
G.factory_startup = true;
|
G.factory_startup = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* After parsing '0' level args such as `--env-*`, since they impact `BKE_appdir` behavior. */
|
/* After parsing #ARG_PASS_ENVIRONMENT such as `--env-*`,
|
||||||
|
* since they impact `BKE_appdir` behavior. */
|
||||||
BKE_appdir_init();
|
BKE_appdir_init();
|
||||||
|
|
||||||
/* Initialize sub-systems that use `BKE_appdir.h`. */
|
/* Initialize sub-systems that use `BKE_appdir.h`. */
|
||||||
@ -432,7 +433,7 @@ int main(int argc,
|
|||||||
IMB_ffmpeg_init();
|
IMB_ffmpeg_init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* After level 1 arguments, this is so #WM_main_playanim skips #RNA_init. */
|
/* After #ARG_PASS_SETTINGS arguments, this is so #WM_main_playanim skips #RNA_init. */
|
||||||
RNA_init();
|
RNA_init();
|
||||||
|
|
||||||
RE_engines_init();
|
RE_engines_init();
|
||||||
|
@ -38,7 +38,7 @@ void main_signal_setup_fpe(void);
|
|||||||
|
|
||||||
#endif /* WITH_PYTHON_MODULE */
|
#endif /* WITH_PYTHON_MODULE */
|
||||||
|
|
||||||
/* Shared data for argument handlers to store state in */
|
/** Shared data for argument handlers to store state in. */
|
||||||
struct ApplicationState {
|
struct ApplicationState {
|
||||||
struct {
|
struct {
|
||||||
bool use_crash_handler;
|
bool use_crash_handler;
|
||||||
@ -57,10 +57,13 @@ extern struct ApplicationState app_state; /* creator.c */
|
|||||||
* Keep in order of execution.
|
* Keep in order of execution.
|
||||||
*/
|
*/
|
||||||
enum {
|
enum {
|
||||||
|
/** Run before sub-system initialization. */
|
||||||
ARG_PASS_ENVIRONMENT = 1,
|
ARG_PASS_ENVIRONMENT = 1,
|
||||||
|
/** General settings parsing, also animation player. */
|
||||||
ARG_PASS_SETTINGS = 2,
|
ARG_PASS_SETTINGS = 2,
|
||||||
/** Windowing & graphical settings, ignored in background mode. */
|
/** Windowing & graphical settings (ignored in background mode). */
|
||||||
ARG_PASS_SETTINGS_GUI = 3,
|
ARG_PASS_SETTINGS_GUI = 3,
|
||||||
|
/** Currently use for audio devices. */
|
||||||
ARG_PASS_SETTINGS_FORCE = 4,
|
ARG_PASS_SETTINGS_FORCE = 4,
|
||||||
|
|
||||||
/** Actions & fall back to loading blend file. */
|
/** Actions & fall back to loading blend file. */
|
||||||
@ -95,4 +98,4 @@ extern char build_cflags[];
|
|||||||
extern char build_cxxflags[];
|
extern char build_cxxflags[];
|
||||||
extern char build_linkflags[];
|
extern char build_linkflags[];
|
||||||
extern char build_system[];
|
extern char build_system[];
|
||||||
#endif
|
#endif /* BUILD_DATE */
|
||||||
|
Loading…
Reference in New Issue
Block a user