Cleanup: Use utility function to find groups in node tree #104465

Merged
Hans Goudey merged 23 commits from mod_moder/blender:is_contains into main 2023-02-10 17:30:57 +01:00
1 changed files with 1 additions and 5 deletions
Showing only changes of commit 17b97e41e0 - Show all commits

View File

@ -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
Review

Check recursively if a node tree contains another.

`Check recursively if a node tree contains another.`
*/
<<<<<<< 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);
Review

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.

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.

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");

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);