Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/intern/derived_node_tree.cc
| Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | bool DerivedNodeTree::has_link_cycles() const | ||||
| for (const NodeTreeRef *tree_ref : used_node_tree_refs_) { | for (const NodeTreeRef *tree_ref : used_node_tree_refs_) { | ||||
| if (tree_ref->has_link_cycles()) { | if (tree_ref->has_link_cycles()) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| bool DerivedNodeTree::has_undefined_nodes_or_sockets() const | |||||
| { | |||||
| for (const NodeTreeRef *tree_ref : used_node_tree_refs_) { | |||||
| if (tree_ref->has_undefined_nodes_or_sockets()) { | |||||
| return true; | |||||
| } | |||||
| } | |||||
| return false; | |||||
| } | |||||
| /* Calls the given callback on all nodes in the (possibly nested) derived node tree. */ | /* Calls the given callback on all nodes in the (possibly nested) derived node tree. */ | ||||
| void DerivedNodeTree::foreach_node(FunctionRef<void(DNode)> callback) const | void DerivedNodeTree::foreach_node(FunctionRef<void(DNode)> callback) const | ||||
| { | { | ||||
| this->foreach_node_in_context_recursive(*root_context_, callback); | this->foreach_node_in_context_recursive(*root_context_, callback); | ||||
| } | } | ||||
| void DerivedNodeTree::foreach_node_in_context_recursive(const DTreeContext &context, | void DerivedNodeTree::foreach_node_in_context_recursive(const DTreeContext &context, | ||||
| FunctionRef<void(DNode)> callback) const | FunctionRef<void(DNode)> callback) const | ||||
| ▲ Show 20 Lines • Show All 283 Lines • Show Last 20 Lines | |||||