diff options
author | Hans Goudey <h.goudey@me.com> | 2022-11-06 00:40:17 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-11-06 12:23:14 +0300 |
commit | 3852094b35ea659094ab30ffca9e2fe086b1a368 (patch) | |
tree | ea9e3a0a562ded9795b8ab6bce969a89b506bee4 /source/blender/blenkernel | |
parent | 28e952dacd83bfeff1edb303d480ae5b32cf59c9 (diff) |
Cleanup: Nodes: Use const arguments, avoid recursive iteration
Use the node topology cache and avoid modifying the node tree
in a non-threadsafe way to improve the predictability of using
the helper function. Replaces the implementation from
e0d40471364aafca967b6ebd52.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/BKE_node.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h index 21d421cfb6a..4d883f9e31e 100644 --- a/source/blender/blenkernel/BKE_node.h +++ b/source/blender/blenkernel/BKE_node.h @@ -1005,7 +1005,7 @@ void node_type_storage(struct bNodeType *ntype, /** \name Node Generic Functions * \{ */ -bool BKE_node_is_connected_to_output(struct bNodeTree *ntree, struct bNode *node); +bool BKE_node_is_connected_to_output(const struct bNodeTree *ntree, const struct bNode *node); /* ************** COMMON NODES *************** */ |