diff options
author | Jacques Lucke <jacques@blender.org> | 2022-09-07 11:24:34 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-09-07 11:24:51 +0300 |
commit | 17d8028181e268f728ced259f7f9960b0fae7722 (patch) | |
tree | fedf4dc1ce28e83b8b17f1ecbcd6b95076bdedea /source/blender/makesdna/DNA_node_types.h | |
parent | 2b43173fa922b04e5e1db092964aa6c263450667 (diff) |
Nodes: add owner_tree method to nodes
Diffstat (limited to 'source/blender/makesdna/DNA_node_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_node_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_node_types.h b/source/blender/makesdna/DNA_node_types.h index 67ff6586de0..28bbd3a3e4e 100644 --- a/source/blender/makesdna/DNA_node_types.h +++ b/source/blender/makesdna/DNA_node_types.h @@ -410,6 +410,8 @@ typedef struct bNode { /** Lookup socket of this node by its identifier. */ const bNodeSocket &input_by_identifier(blender::StringRef identifier) const; const bNodeSocket &output_by_identifier(blender::StringRef identifier) const; + /** Node tree this node belongs to. */ + const bNodeTree &owner_tree() const; #endif } bNode; |