Commit: e839d2f39ab641619b383e74b211fad32e758888
Author: Lukas Tönne
Date:   Thu Dec 10 12:01:49 2015 +0100
Branches: object_nodes
https://developer.blender.org/rBe839d2f39ab641619b383e74b211fad32e758888

Fix for graph debug: input arguments refer to outputs, can just use the ARG 
nodes themselves.

===================================================================

M       source/blender/blenvm/compile/bvm_nodegraph.cc

===================================================================

diff --git a/source/blender/blenvm/compile/bvm_nodegraph.cc 
b/source/blender/blenvm/compile/bvm_nodegraph.cc
index 7d2647d..074ec7e 100644
--- a/source/blender/blenvm/compile/bvm_nodegraph.cc
+++ b/source/blender/blenvm/compile/bvm_nodegraph.cc
@@ -937,18 +937,17 @@ static void debug_graphviz_input_output(const 
DebugContext &ctx,
                        const NodeGraph::Input *tail = input;
                        const NodeInstance *head = key.node;
                        const string &head_socket = key.socket;
-                       int head_index = debug_input_index(head, head_socket);
                        debug_fprintf(ctx, "// %s:%s -> %s\n",
                                      tail->name.c_str(),
                                      head->name.c_str(), head_socket.c_str());
                        debug_fprintf(ctx, "\"input_%p\"", tail);
                        debug_fprintf(ctx, " -> ");
-                       debug_fprintf(ctx, "\"node_%p\":\"O%s_%d\"", head, 
head_socket.c_str(), head_index);
+                       debug_fprintf(ctx, "\"node_%p\"", head);
                        
                        debug_fprintf(ctx, "[");
                        /* Note: without label an id seem necessary to avoid 
bugs in graphviz/dot */
-                       debug_fprintf(ctx, "id=\"A%s:O%s_%dB%s\"",
-                                     head->name.c_str(), head_socket.c_str(), 
head_index,
+                       debug_fprintf(ctx, "id=\"A%sB%s\"",
+                                     head->name.c_str(),
                                      tail->name.c_str());
                        
                        debug_fprintf(ctx, ",penwidth=\"%f\"", penwidth);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to