Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2017-06-13 15:12:54 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2017-06-13 15:13:55 +0300
commit90bc882068465865883da55e5c82fa99e0f8d66b (patch)
tree8b7fbd09ef482b663562ed7dfc50911b3701eb78 /source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc
parent6cfa3ecd4d9848f27a0b1fe121e3ca2c29042e32 (diff)
Depsgraph: Remove root node concept
Was rather weird and only used for time source. It is simpler to make depsgraph to keep track of time source directly. No need to introduce extra entitites without actual need.
Diffstat (limited to 'source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc')
-rw-r--r--source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc22
1 files changed, 9 insertions, 13 deletions
diff --git a/source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc b/source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc
index 07712e060ca..51d4ed91419 100644
--- a/source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc
+++ b/source/blender/depsgraph/intern/debug/deg_debug_graphviz.cc
@@ -77,19 +77,18 @@ static const char *deg_debug_colors_light[] = {
#ifdef COLOR_SCHEME_NODE_TYPE
static const int deg_debug_node_type_color_map[][2] = {
- {DEG_NODE_TYPE_ROOT, 0},
- {DEG_NODE_TYPE_TIMESOURCE, 1},
+ {DEG_NODE_TYPE_TIMESOURCE, 0},
{DEG_NODE_TYPE_ID_REF, 2},
/* Outer Types */
- {DEG_NODE_TYPE_PARAMETERS, 3},
- {DEG_NODE_TYPE_PROXY, 4},
- {DEG_NODE_TYPE_ANIMATION, 5},
- {DEG_NODE_TYPE_TRANSFORM, 6},
- {DEG_NODE_TYPE_GEOMETRY, 7},
- {DEG_NODE_TYPE_SEQUENCER, 8},
- {DEG_NODE_TYPE_SHADING, 9},
- {DEG_NODE_TYPE_CACHE, 10},
+ {DEG_NODE_TYPE_PARAMETERS, 2},
+ {DEG_NODE_TYPE_PROXY, 3},
+ {DEG_NODE_TYPE_ANIMATION, 4},
+ {DEG_NODE_TYPE_TRANSFORM, 5},
+ {DEG_NODE_TYPE_GEOMETRY, 6},
+ {DEG_NODE_TYPE_SEQUENCER, 7},
+ {DEG_NODE_TYPE_SHADING, 8},
+ {DEG_NODE_TYPE_CACHE, 9},
{-1, 0}
};
#endif
@@ -498,9 +497,6 @@ static void deg_debug_graphviz_node_relations(const DebugContext &ctx,
static void deg_debug_graphviz_graph_nodes(const DebugContext &ctx,
const Depsgraph *graph)
{
- if (graph->root_node) {
- deg_debug_graphviz_node(ctx, graph->root_node);
- }
GHASH_FOREACH_BEGIN (DepsNode *, node, graph->id_hash)
{
deg_debug_graphviz_node(ctx, node);