diff options
author | Martin Poirier <theeth@yahoo.com> | 2010-01-06 23:16:01 +0300 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2010-01-06 23:16:01 +0300 |
commit | 0cc7b5800c0bf3ce642da11c72fc22e5dbc31393 (patch) | |
tree | dd8e1b9540e3a71325190323508ec512dd6cdee3 /source/blender | |
parent | a8c3831a1dc0d3a85405382e6c7ebda54264497b (diff) |
Renderer: Change default test_break function to check G.afbreek to work correctly in background mode correctly.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/render/intern/source/pipeline.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/render/intern/source/pipeline.c b/source/blender/render/intern/source/pipeline.c index ff1f6541f06..73f253209e8 100644 --- a/source/blender/render/intern/source/pipeline.c +++ b/source/blender/render/intern/source/pipeline.c @@ -130,8 +130,8 @@ static void result_nothing(void *unused, RenderResult *rr) {} static void result_rcti_nothing(void *unused, RenderResult *rr, volatile struct rcti *rect) {} static void stats_nothing(void *unused, RenderStats *rs) {} static void int_nothing(void *unused, int val) {} -static int void_nothing(void *unused) {return 0;} static void print_error(void *unused, char *str) {printf("ERROR: %s\n", str);} +static int default_break(void *unused) {return G.afbreek == 1;} int RE_RenderInProgress(Render *re) { @@ -1119,7 +1119,7 @@ Render *RE_NewRender(const char *name) re->display_clear= result_nothing; re->display_draw= result_rcti_nothing; re->timecursor= int_nothing; - re->test_break= void_nothing; + re->test_break= default_break; re->error= print_error; if(G.background) re->stats_draw= stats_background; |