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-07-07 19:40:42 +0300
committerJacques Lucke <jacques@blender.org>2020-07-07 19:40:42 +0300
commitadfae89f96ea088d18b0d6f0e775c48b049a332a (patch)
tree49034a78f0e2caba9419a1b27e02753dc2d8459d /source/blender/blenlib
parenta8627ea66d7825d676889e5e1b6fc915e5dd772f (diff)
BLI: provide access to underlying node in dot exporter
Diffstat (limited to 'source/blender/blenlib')
-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 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) + "\"";