[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53349] trunk/blender/source/blender/ render/intern/source/pipeline.c: Better error report when no camera is found.

Pablo Vazquez venomgfx at gmail.com
Thu Dec 27 23:00:31 CET 2012


Revision: 53349
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53349
Author:   venomgfx
Date:     2012-12-27 22:00:31 +0000 (Thu, 27 Dec 2012)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/render/intern/source/pipeline.c

Modified: trunk/blender/source/blender/render/intern/source/pipeline.c
===================================================================
--- trunk/blender/source/blender/render/intern/source/pipeline.c	2012-12-27 19:07:16 UTC (rev 53348)
+++ trunk/blender/source/blender/render/intern/source/pipeline.c	2012-12-27 22:00:31 UTC (rev 53349)
@@ -1237,7 +1237,7 @@
 	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;
 	}




More information about the Bf-blender-cvs mailing list