diff options
Diffstat (limited to 'source/blender/render/intern/engine.c')
-rw-r--r-- | source/blender/render/intern/engine.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/render/intern/engine.c b/source/blender/render/intern/engine.c index 13faddfcd2f..151d994dddf 100644 --- a/source/blender/render/intern/engine.c +++ b/source/blender/render/intern/engine.c @@ -803,23 +803,23 @@ static void engine_render_view_layer(Render *re, engine_depsgraph_free(engine); } -int RE_engine_render(Render *re, int do_all) +bool RE_engine_render(Render *re, bool do_all) { RenderEngineType *type = RE_engines_find(re->r.engine); bool persistent_data = (re->r.mode & R_PERSISTENT_DATA) != 0; /* verify if we can render */ if (!type->render) { - return 0; + return false; } if ((re->r.scemode & R_BUTS_PREVIEW) && !(type->flag & RE_USE_PREVIEW)) { - return 0; + return false; } if (do_all && !(type->flag & RE_USE_POSTPROCESS)) { - return 0; + return false; } if (!do_all && (type->flag & RE_USE_POSTPROCESS)) { - return 0; + return false; } /* Lock drawing in UI during data phase. */ @@ -859,7 +859,7 @@ int RE_engine_render(Render *re, int do_all) */ BKE_report(re->reports, RPT_ERROR, "Failed allocate render result, out of memory"); G.is_break = true; - return 1; + return true; } /* set render info */ @@ -977,7 +977,7 @@ int RE_engine_render(Render *re, int do_all) } #endif - return 1; + return true; } void RE_engine_update_render_passes(struct RenderEngine *engine, |