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>2012-03-06 22:40:15 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-03-06 22:40:15 +0400
commit31d2ee9bf77bb991ea4779c47379b2cee84b27ed (patch)
treefd6f021356fc78d6dfeff9f18f601ce645dd7ffe /source/creator
parent7b7214c72233f72268f72d31fd8626a0f94e557e (diff)
style cleanup, brackets in else/if, some indentation.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c43
1 files changed, 19 insertions, 24 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index c047111f604..bf1c27cc9c4 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -569,8 +569,7 @@ static int set_engine(int argc, const char **argv, void *data)
return 1;
}
- else
- {
+ else {
printf("\nEngine not specified, give 'help' for a list of available engines.\n");
return 0;
}
@@ -649,31 +648,28 @@ static int set_ge_parameters(int argc, const char **argv, void *data)
(void)data;
#endif
-/**
-gameengine parameters are automaticly put into system
--g [paramname = value]
--g [boolparamname]
-example:
--g novertexarrays
--g maxvertexarraysize = 512
-*/
-
- if(argc >= 1)
- {
+ /**
+ * gameengine parameters are automaticly put into system
+ * -g [paramname = value]
+ * -g [boolparamname]
+ * example:
+ * -g novertexarrays
+ * -g maxvertexarraysize = 512
+ */
+
+ if (argc >= 1) {
const char *paramname = argv[a];
/* check for single value versus assignment */
- if (a+1 < argc && (*(argv[a+1]) == '='))
- {
+ if (a+1 < argc && (*(argv[a+1]) == '=')) {
a++;
- if (a+1 < argc)
- {
+ if (a+1 < argc) {
a++;
/* assignment */
#ifdef WITH_GAMEENGINE
SYS_WriteCommandLineString(syshandle,paramname,argv[a]);
#endif
- } else
- {
+ }
+ else {
printf("error: argument assignment (%s) without value.\n",paramname);
return 0;
}
@@ -684,8 +680,7 @@ example:
SYS_WriteCommandLineInt(syshandle,argv[a],1);
#endif
/* doMipMap */
- if (!strcmp(argv[a],"nomipmap"))
- {
+ if (!strcmp(argv[a],"nomipmap")) {
GPU_set_mipmap(0); //doMipMap = 0;
}
/* linearMipMap */
@@ -755,7 +750,8 @@ static int render_animation(int UNUSED(argc), const char **UNUSED(argv), void *d
RE_SetReports(re, &reports);
RE_BlenderAnim(re, bmain, scene, NULL, scene->lay, scene->r.sfra, scene->r.efra, scene->r.frame_step);
RE_SetReports(re, NULL);
- } else {
+ }
+ else {
printf("\nError: no blend loaded. cannot use '-a'.\n");
}
return 0;
@@ -1257,11 +1253,10 @@ int main(int argc, const char **argv)
return 0; /* keep blender in background mode running */
#endif
- if(G.background) {
+ if (G.background) {
/* actually incorrect, but works for now (ton) */
WM_exit(C);
}
-
else {
if((G.fileflags & G_FILE_AUTOPLAY) && (G.f & G_SCRIPT_AUTOEXEC))
{