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>2021-10-21 16:38:41 +0300
committerJacques Lucke <jacques@blender.org>2021-10-21 16:50:04 +0300
commit6600ae3aa707d7e1c2728b9af50dc15e81fd7f2b (patch)
treeb4ec39d95aaaee557366d7bc3719858d2626d0de /source/blender/nodes/NOD_node_tree_ref.hh
parentdf004637643241136a3294a63c7d4ca865cdea98 (diff)
Nodes: add utility to find NodeRef for node
In the future `NodeTreeRef` could have a lazy initialized map, but for now this is good enough.
Diffstat (limited to 'source/blender/nodes/NOD_node_tree_ref.hh')
-rw-r--r--source/blender/nodes/NOD_node_tree_ref.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/nodes/NOD_node_tree_ref.hh b/source/blender/nodes/NOD_node_tree_ref.hh
index 5337f79536b..b6e372470c8 100644
--- a/source/blender/nodes/NOD_node_tree_ref.hh
+++ b/source/blender/nodes/NOD_node_tree_ref.hh
@@ -275,6 +275,8 @@ class NodeTreeRef : NonCopyable, NonMovable {
Span<const LinkRef *> links() const;
+ const NodeRef *find_node(const bNode &bnode) const;
+
bool has_link_cycles() const;
bool has_undefined_nodes_or_sockets() const;