[Bf-blender-cvs] [ee66e51] depsgraph_refactor: Use current id->component->operation nesting for displaying debug relations.
Lukas Tönne
noreply at git.blender.org
Tue May 13 18:41:14 CEST 2014
Commit: ee66e51ff148b0d2cd51e3b4cf8c83c28f12e3fa
Author: Lukas Tönne
Date: Tue May 13 18:33:27 2014 +0200
https://developer.blender.org/rBee66e51ff148b0d2cd51e3b4cf8c83c28f12e3fa
Use current id->component->operation nesting for displaying debug
relations.
Eventually operations will get a single container in the graph, but this
is not working yet.
===================================================================
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 7c4b80e..59a7bf7 100644
--- a/source/blender/depsgraph/intern/depsgraph_debug.cpp
+++ b/source/blender/depsgraph/intern/depsgraph_debug.cpp
@@ -565,9 +565,20 @@ static void deg_debug_graphviz_graph_relations(const DebugContext &ctx, const De
deg_debug_graphviz_node_relations(ctx, id_node);
}
#else
- for (Depsgraph::OperationNodes::const_iterator it = graph->all_opnodes.begin(); it != graph->all_opnodes.end(); ++it) {
- OperationDepsNode *op_node = *it;
- deg_debug_graphviz_node_relations(ctx, op_node);
+ /* XXX not in use yet */
+// for (Depsgraph::OperationNodes::const_iterator it = graph->all_opnodes.begin(); it != graph->all_opnodes.end(); ++it) {
+// OperationDepsNode *op_node = *it;
+// deg_debug_graphviz_node_relations(ctx, op_node);
+// }
+ for (Depsgraph::IDNodeMap::const_iterator it = graph->id_hash.begin(); it != graph->id_hash.end(); ++it) {
+ IDDepsNode *id_node = it->second;
+ for (IDDepsNode::ComponentMap::const_iterator it = id_node->components.begin(); it != id_node->components.end(); ++it) {
+ ComponentDepsNode *comp_node = it->second;
+ for (ComponentDepsNode::OperationMap::const_iterator it = comp_node->operations.begin(); it != comp_node->operations.end(); ++it) {
+ OperationDepsNode *op_node = it->second;
+ deg_debug_graphviz_node_relations(ctx, op_node);
+ }
+ }
}
#endif
}
More information about the Bf-blender-cvs
mailing list