diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-11-03 16:10:09 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2010-11-03 16:10:09 +0300 |
commit | b350954501bf59d4d87ab0cd90b13456b0285e62 (patch) | |
tree | f59533fc8e1a75970c426abd0c03f7f3c88b3afa /source/blender/editors/render | |
parent | 1f2469d9925ee5701375ffec75d50f8c5601b552 (diff) |
[#23095] If no camera is present, a render starts but does nothing, and we have no "No camera" warning
Improve camera checking and move it before starting render jobs
Diffstat (limited to 'source/blender/editors/render')
-rw-r--r-- | source/blender/editors/render/render_internal.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/render/render_internal.c b/source/blender/editors/render/render_internal.c index 40aba913efe..bf017856389 100644 --- a/source/blender/editors/render/render_internal.c +++ b/source/blender/editors/render/render_internal.c @@ -637,6 +637,10 @@ static int screen_render_invoke(bContext *C, wmOperator *op, wmEvent *event) if(WM_jobs_test(CTX_wm_manager(C), scene)) return OPERATOR_CANCELLED; + if(!RE_is_rendering_allowed(scene, op->reports, render_error_reports)) { + return OPERATOR_CANCELLED; + } + /* stop all running jobs, currently previews frustrate Render */ WM_jobs_stop_all(CTX_wm_manager(C)); |