[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [49066] trunk/blender/intern/cycles/render /graph.cpp: print names of nodes/ sockets when cycles complains about only being able to connect a closure to another closure .

Campbell Barton ideasman42 at gmail.com
Thu Jul 19 15:04:44 CEST 2012


Revision: 49066
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=49066
Author:   campbellbarton
Date:     2012-07-19 13:04:43 +0000 (Thu, 19 Jul 2012)
Log Message:
-----------
print names of nodes/sockets when cycles complains about only being able to connect a closure to another closure.

Modified Paths:
--------------
    trunk/blender/intern/cycles/render/graph.cpp

Modified: trunk/blender/intern/cycles/render/graph.cpp
===================================================================
--- trunk/blender/intern/cycles/render/graph.cpp	2012-07-19 11:40:25 UTC (rev 49065)
+++ trunk/blender/intern/cycles/render/graph.cpp	2012-07-19 13:04:43 UTC (rev 49066)
@@ -187,7 +187,10 @@
 	if(from->type != to->type) {
 		/* for closures we can't do automatic conversion */
 		if(from->type == SHADER_SOCKET_CLOSURE || to->type == SHADER_SOCKET_CLOSURE) {
-			fprintf(stderr, "ShaderGraph connect: can only connect closure to closure.\n");
+			fprintf(stderr, "ShaderGraph connect: can only connect closure to closure "
+			        "(ShaderNode:%s, ShaderOutput:%s , type:%d -> to ShaderNode:%s, ShaderOutput:%s, type:%d).\n",
+			        from->parent->name.c_str(), from->name, (int)from->type,
+			        to->parent->name.c_str(),   to->name,   (int)to->type);
 			return;
 		}
 




More information about the Bf-blender-cvs mailing list