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:
authorJacques Lucke <jacques@blender.org>2020-08-05 13:21:35 +0300
committerJacques Lucke <jacques@blender.org>2020-08-05 13:22:45 +0300
commite4a4dc53098441ddb61864945969161e0aedb931 (patch)
treeae1c52aef2015947d14f422fccb5bc9eee7b999f /source/blender/blenlib/BLI_dot_export.hh
parentfc9f7e3e51ae43a64917b7ef65e8210394220dfa (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.hh5
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 {