Fix: Dependency graph visibility flags counting a to nodes as a from

Fixing of typo in accomulating of affected nodes.

Pull Request: https://projects.blender.org/blender/blender/pulls/108888
This commit is contained in:
Iliya Katueshenock
2023-06-13 09:46:27 +02:00
committed by Sergey Sharybin
parent 144ad4d20b
commit 3a1fdfc439

View File

@@ -127,7 +127,7 @@ void deg_graph_flush_visibility_flags(Depsgraph *graph)
op_node->custom_flags = 0;
op_node->num_links_pending = 0;
for (Relation *rel : op_node->outlinks) {
if ((rel->from->type == NodeType::OPERATION) && (rel->flag & RELATION_FLAG_CYCLIC) == 0) {
if ((rel->to->type == NodeType::OPERATION) && (rel->flag & RELATION_FLAG_CYCLIC) == 0) {
++op_node->num_links_pending;
}
}