diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-07 19:40:42 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-07 19:40:42 +0300 |
commit | adfae89f96ea088d18b0d6f0e775c48b049a332a (patch) | |
tree | 49034a78f0e2caba9419a1b27e02753dc2d8459d /source/blender/blenlib/BLI_dot_export.hh | |
parent | a8627ea66d7825d676889e5e1b6fc915e5dd772f (diff) |
BLI: provide access to underlying node in dot exporter
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 450cb2ef58c..a7c5f1436d1 100644 --- a/source/blender/blenlib/BLI_dot_export.hh +++ b/source/blender/blenlib/BLI_dot_export.hh @@ -269,6 +269,11 @@ class NodeWithSocketsRef { Span<std::string> input_names, Span<std::string> output_names); + Node &node() + { + return *node_; + } + NodePort input(uint index) const { std::string port = "\"in" + std::to_string(index) + "\""; |