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:
authorMartin Poirier <theeth@yahoo.com>2009-05-13 03:53:55 +0400
committerMartin Poirier <theeth@yahoo.com>2009-05-13 03:53:55 +0400
commit9147124ac2813f79bc44ae54ca2676c8afab0ade (patch)
tree67eb9048362a6b60436299a6f5003703fce8ddb6 /source/creator
parentf790744faf3ee8e3d65afa0cdc65f7efc24b87ab (diff)
Mixed declaration and code. That should teach me to ignore warnings.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index a39d2916a84..e04a5b1db3d 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -663,8 +663,9 @@ int main(int argc, char **argv)
if (G.scene) {
if (a < argc) {
int frame = atoi(argv[a]);
+ Render *re = RE_NewRender(G.scene->id.name);
+
frame = MIN2(MAXFRAME, MAX2(1, frame));
- Render *re= RE_NewRender(G.scene->id.name);
#ifndef DISABLE_PYTHON
if (G.f & G_DOSCRIPTLINKS)
BPY_do_all_scripts(SCRIPT_RENDER, 0);