[Bf-blender-cvs] [dbdb106] master: Small fix for depsgraph debug graphviz: empty labels for edges require an explicit id.
Lukas Tönne
noreply at git.blender.org
Mon Sep 21 12:46:49 CEST 2015
Commit: dbdb1064e7fb7984e17e7bdd89cfb6b688584986
Author: Lukas Tönne
Date: Mon Sep 21 12:46:07 2015 +0200
Branches: master
https://developer.blender.org/rBdbdb1064e7fb7984e17e7bdd89cfb6b688584986
Small fix for depsgraph debug graphviz: empty labels for edges require an explicit id.
===================================================================
M source/blender/depsgraph/intern/depsgraph_debug.cc
===================================================================
diff --git a/source/blender/depsgraph/intern/depsgraph_debug.cc b/source/blender/depsgraph/intern/depsgraph_debug.cc
index 1a266cc..5498043 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);
More information about the Bf-blender-cvs
mailing list