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>2020-10-28 08:00:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-10-28 08:00:26 +0300
commit1be819ea666058977510d907f7eae88fa1de9581 (patch)
tree6b5a0d65a5db7ee92ad4e3d28b9b42e97c70423d
parenta0f2866a8e330d7f04dd2f330051b79e3eec98be (diff)
Cleanup: update comments
Some references to argument levels were still in comments.
-rw-r--r--source/creator/creator.c5
-rw-r--r--source/creator/creator_intern.h9
2 files changed, 9 insertions, 5 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 90d918f71ac..4f5af4bf4ac 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -411,7 +411,8 @@ int main(int argc,
G.factory_startup = true;
#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();
/* Initialize sub-systems that use `BKE_appdir.h`. */
@@ -432,7 +433,7 @@ int main(int argc,
IMB_ffmpeg_init();
#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();
RE_engines_init();
diff --git a/source/creator/creator_intern.h b/source/creator/creator_intern.h
index 5f184e4cef3..0a13f45eef1 100644
--- a/source/creator/creator_intern.h
+++ b/source/creator/creator_intern.h
@@ -38,7 +38,7 @@ void main_signal_setup_fpe(void);
#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 {
bool use_crash_handler;
@@ -57,10 +57,13 @@ extern struct ApplicationState app_state; /* creator.c */
* Keep in order of execution.
*/
enum {
+ /** Run before sub-system initialization. */
ARG_PASS_ENVIRONMENT = 1,
+ /** General settings parsing, also animation player. */
ARG_PASS_SETTINGS = 2,
- /** Windowing & graphical settings, ignored in background mode. */
+ /** Windowing & graphical settings (ignored in background mode). */
ARG_PASS_SETTINGS_GUI = 3,
+ /** Currently use for audio devices. */
ARG_PASS_SETTINGS_FORCE = 4,
/** Actions & fall back to loading blend file. */
@@ -95,4 +98,4 @@ extern char build_cflags[];
extern char build_cxxflags[];
extern char build_linkflags[];
extern char build_system[];
-#endif
+#endif /* BUILD_DATE */