Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph_query_foreach.cc
| Show First 20 Lines • Show All 71 Lines • ▼ Show 20 Lines | if (target_id_node == nullptr) { | ||||
| /* TODO(sergey): Shall we inform or assert here about attempt to start | /* TODO(sergey): Shall we inform or assert here about attempt to start | ||||
| * iterating over non-existing ID? */ | * iterating over non-existing ID? */ | ||||
| return; | return; | ||||
| } | } | ||||
| /* Start with scheduling all operations from ID node. */ | /* Start with scheduling all operations from ID node. */ | ||||
| TraversalQueue queue; | TraversalQueue queue; | ||||
| Set<OperationNode *> scheduled; | Set<OperationNode *> scheduled; | ||||
| for (ComponentNode *comp_node : target_id_node->components.values()) { | for (ComponentNode *comp_node : target_id_node->components.values()) { | ||||
| if (comp_node->type == NodeType::VISIBILITY) { | |||||
| /* Visibility component is only used internally. It is not to be reporting dependencies to | |||||
| * the outer world. */ | |||||
sybren: outer | |||||
| continue; | |||||
| } | |||||
| if (source_component_type != DEG_OB_COMP_ANY && | if (source_component_type != DEG_OB_COMP_ANY && | ||||
| nodeTypeToObjectComponent(comp_node->type) != source_component_type) { | nodeTypeToObjectComponent(comp_node->type) != source_component_type) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| for (OperationNode *op_node : comp_node->operations) { | for (OperationNode *op_node : comp_node->operations) { | ||||
| if (!deg_foreach_needs_visit(op_node, flags)) { | if (!deg_foreach_needs_visit(op_node, flags)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines | |||||
outer