diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-19 17:04:43 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-19 17:04:43 +0400 |
commit | 2557eaf0dd33e3139cc6188b97029207686360bf (patch) | |
tree | 8a8fa61fcde1c3715b18d945c4ff9ea3eda5af19 /intern | |
parent | 776c6e66b2064f2a6934a726f4fcc317b709d6fd (diff) |
print names of nodes/sockets when cycles complains about only being able to connect a closure to another closure.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/render/graph.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/cycles/render/graph.cpp b/intern/cycles/render/graph.cpp index 34c8879aa1f..18e802b610d 100644 --- a/intern/cycles/render/graph.cpp +++ b/intern/cycles/render/graph.cpp @@ -187,7 +187,10 @@ void ShaderGraph::connect(ShaderOutput *from, ShaderInput *to) 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, ShaderInput:%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; } |