diff options
author | Jacques Lucke <jacques@blender.org> | 2020-08-05 13:21:35 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-08-05 13:22:45 +0300 |
commit | e4a4dc53098441ddb61864945969161e0aedb931 (patch) | |
tree | ae1c52aef2015947d14f422fccb5bc9eee7b999f /source/blender/blenlib/BLI_dot_export.hh | |
parent | fc9f7e3e51ae43a64917b7ef65e8210394220dfa (diff) |
BLI: add dot::Edge.set_label method
This method sets the label of an edge in a dot graph.
Diffstat (limited to 'source/blender/blenlib/BLI_dot_export.hh')
-rw-r--r-- | source/blender/blenlib/BLI_dot_export.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_dot_export.hh b/source/blender/blenlib/BLI_dot_export.hh index 0870d8c4c30..8155f8518e4 100644 --- a/source/blender/blenlib/BLI_dot_export.hh +++ b/source/blender/blenlib/BLI_dot_export.hh @@ -237,6 +237,11 @@ class Edge : blender::NonCopyable, blender::NonMovable { { this->set_attribute("dir", dirType_to_string(type)); } + + void set_label(StringRef label) + { + this->set_attribute("label", label); + } }; class DirectedEdge : public Edge { |