Cleanup: Use utility function to find groups in node tree #104465
|
@ -508,12 +508,8 @@ struct bNode *ntreeFindType(struct bNodeTree *ntree, int type);
|
|||
/**
|
||||
* Check recursively whether a sub node tree contain in host tree.
|
||||
mod_moder marked this conversation as resolved
|
||||
*/
|
||||
<<<<<<< HEAD
|
||||
bool ntreeContainsTree(const bNodeTree *parent_tree, const bNodeTree *sub_tree);
|
||||
== == == = bool ntreeContainsTree(const struct bNodeTree *parent_tree,
|
||||
const struct bNodeTree *sub_tree);
|
||||
bool ntreeContainsTree(const struct bNodeTree *parent_tree, const struct bNodeTree *sub_tree);
|
||||
Jacques Lucke
commented
I think it would be better to use names like I think it would be better to use names like `tree_to_search_in` and `tree_to_search_for`. I find that the most clear.
Iliya Katushenock
commented
This only for backend part, or in python is too? This only for backend part, or in python is too?
`parm = RNA_def_pointer(func, "sub_tree", "NodeTree", "Node Tree", "Node tree for recursive check");`
|
||||
|
||||
>>>>>>> tree_contain_in
|
||||
void ntreeUpdateAllNew(struct Main *main);
|
||||
void ntreeUpdateAllUsers(struct Main *main, struct ID *id);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Check recursively if a node tree contains another.