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:
authorLukas Tönne <lukas.toenne@gmail.com>2015-09-21 13:46:07 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-09-21 13:46:07 +0300
commitdbdb1064e7fb7984e17e7bdd89cfb6b688584986 (patch)
tree9ce97d7a224b257f90743232e9a9d06fde4a05ea /source/blender/depsgraph
parent1ee9c5d6a3a24d733dc7eee8e61b9f37dda65e03 (diff)
Small fix for depsgraph debug graphviz: empty labels for edges require an explicit id.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r--source/blender/depsgraph/intern/depsgraph_debug.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/depsgraph/intern/depsgraph_debug.cc b/source/blender/depsgraph/intern/depsgraph_debug.cc
index 1a266ccb283..54980436733 100644
--- a/source/blender/depsgraph/intern/depsgraph_debug.cc
+++ b/source/blender/depsgraph/intern/depsgraph_debug.cc
@@ -619,8 +619,8 @@ static void deg_debug_graphviz_node_relations(const DebugContext &ctx,
deg_debug_fprintf(ctx, "label=\"%s\"", rel->name);
deg_debug_fprintf(ctx, ",fontname=\"%s\"", deg_debug_graphviz_fontname);
#else
- /* Note: some dummy label seems to be necessary or dot gets confused for some reason ... */
- deg_debug_fprintf(ctx, "label=\" \"");
+ /* Note: without label an id seem necessary to avoid bugs in graphviz/dot */
+ deg_debug_fprintf(ctx, "id=\"%s\"", rel->name);
#endif
deg_debug_fprintf(ctx, ",color="); deg_debug_graphviz_relation_color(ctx, rel);
deg_debug_fprintf(ctx, ",penwidth=\"%f\"", penwidth);