diff options
Diffstat (limited to 'source/blender/blenkernel/BKE_node.h')
-rw-r--r-- | source/blender/blenkernel/BKE_node.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h index 583db20501d..b97bf203a7c 100644 --- a/source/blender/blenkernel/BKE_node.h +++ b/source/blender/blenkernel/BKE_node.h @@ -373,6 +373,7 @@ void ntreeFreeCache(struct bNodeTree *ntree); int ntreeNodeExists(struct bNodeTree *ntree, struct bNode *testnode); int ntreeOutputExists(struct bNode *node, struct bNodeSocket *testsock); +void ntreeNodeFlagSet(const bNodeTree *ntree, const int flag, const bool enable); struct bNodeTree *ntreeLocalize(struct bNodeTree *ntree); void ntreeLocalSync(struct bNodeTree *localtree, struct bNodeTree *ntree); void ntreeLocalMerge(struct bNodeTree *localtree, struct bNodeTree *ntree); @@ -475,6 +476,15 @@ void nodeDetachNode(struct bNode *node); struct bNode *nodeFindNodebyName(struct bNodeTree *ntree, const char *name); int nodeFindNode(struct bNodeTree *ntree, struct bNodeSocket *sock, struct bNode **nodep, int *sockindex); +struct bNode *nodeFindRootParent(bNode *node); + +bool nodeIsChildOf(const bNode *parent, const bNode *child); + +void nodeChainIter( + const bNodeTree *ntree, const bNode *node_start, + bool (*callback)(bNode *, bNode *, void *, const bool), void *userdata, + const bool reversed); +void nodeParentsIter(bNode *node, bool (*callback)(bNode *, void *), void *userdata); struct bNodeLink *nodeFindLink(struct bNodeTree *ntree, struct bNodeSocket *from, struct bNodeSocket *to); int nodeCountSocketLinks(struct bNodeTree *ntree, struct bNodeSocket *sock); |