Small fix for depsgraph debug graphviz: empty labels for edges require an explicit id.
authorLukas Tönne <lukas.toenne@gmail.com>
Mon, 21 Sep 2015 10:46:07 +0000 (12:46 +0200)
committerLukas Tönne <lukas.toenne@gmail.com>
Mon, 21 Sep 2015 10:46:07 +0000 (12:46 +0200)
source/blender/depsgraph/intern/depsgraph_debug.cc

index 1a266ccb283e22e3cb5bd3b9c206e74d35665beb..5498043673377eca069100844f559deb8a07f639 100644 (file)
@@ -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);