[Bf-blender-cvs] [5c26428] depsgraph_refactor: Inverted the direction of relations in graphviz debug output to get a better left->right direction and indicate the logical ordering of operations.

Lukas Tönne noreply at git.blender.org
Tue May 20 20:24:51 CEST 2014


Commit: 5c26428c581c8a7b8f509ed8106140c0ea061772
Author: Lukas Tönne
Date:   Tue May 20 20:23:08 2014 +0200
https://developer.blender.org/rB5c26428c581c8a7b8f509ed8106140c0ea061772

Inverted the direction of relations in graphviz debug output to get a better left->right direction and indicate the logical ordering of operations.

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

M	source/blender/depsgraph/intern/depsgraph_debug.cpp

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

diff --git a/source/blender/depsgraph/intern/depsgraph_debug.cpp b/source/blender/depsgraph/intern/depsgraph_debug.cpp
index 49dea4f..033ad23 100644
--- a/source/blender/depsgraph/intern/depsgraph_debug.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_debug.cpp
@@ -498,10 +498,10 @@ static void deg_debug_graphviz_node_relations(const DebugContext &ctx, const Ope
 		const DepsNode *tail = rel->to; /* same as node */
 		const DepsNode *head = rel->from;
 		
-		deg_debug_printf(ctx, "// %s -> %s\n", tail->name.c_str(), head->name.c_str());
-		deg_debug_printf(ctx, "\"node_%p\"", tail);
-		deg_debug_printf(ctx, " -> ");
+		deg_debug_printf(ctx, "// %s -> %s\n", head->name.c_str(), tail->name.c_str());
 		deg_debug_printf(ctx, "\"node_%p\"", head);
+		deg_debug_printf(ctx, " -> ");
+		deg_debug_printf(ctx, "\"node_%p\"", tail);
 
 		deg_debug_printf(ctx, "[");
 		deg_debug_printf(ctx, "label=\"%s\"", rel->name.c_str());




More information about the Bf-blender-cvs mailing list