diff options
author | Pablo Vazquez <venomgfx@gmail.com> | 2012-12-28 02:00:31 +0400 |
---|---|---|
committer | Pablo Vazquez <venomgfx@gmail.com> | 2012-12-28 02:00:31 +0400 |
commit | 6a0c8790d87877c875659dda4a4ad460193fb480 (patch) | |
tree | 02049adcc9b30396631b2605b6477bf7e278ac20 /source | |
parent | 5a907210989c82f415ceeaeee2e71b0ed27725d0 (diff) |
Better error report when no camera is found.
While trying to render a RenderLayer from a linked scene, I couldnt tell why it wasnt doing anything. It just stopped rendering. Until I look on the console and see the No Camera print.
This commit replaces the simple terminal printf with an actual error report, that shows in both terminal and to the user:
http://pasteall.org/pic/show.php?id=42499
I believe this commit is pretty harmless, and only adds functionality. But feel free to remove it.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/render/intern/source/pipeline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/pipeline.c b/source/blender/render/intern/source/pipeline.c index 35ac038f2f2..2d4e9513d0a 100644 --- a/source/blender/render/intern/source/pipeline.c +++ b/source/blender/render/intern/source/pipeline.c @@ -1237,7 +1237,7 @@ static void do_render_fields_blur_3d(Render *re) Object *camera = RE_GetCamera(re); /* also check for camera here */ if (camera == NULL) { - printf("ERROR: Cannot render, no camera\n"); + BKE_report(re->reports, RPT_ERROR, "Cannot render, no camera"); G.is_break = TRUE; return; } |