Page MenuHome
Paste P1133

T70614 snippet
ActivePublic

Authored by Philipp Oeser (lichtwerk) on Oct 8 2019, 7:01 PM.
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c
index 4ddfd879657..91af163dc7a 100644
--- a/source/blender/blenkernel/intern/node.c
+++ b/source/blender/blenkernel/intern/node.c
@@ -962,8 +962,17 @@ static void iter_backwards_ex(const bNodeTree *ntree,
continue;
}
if (link->fromnode->iter_flag) {
- /* Only iter on nodes once. */
- continue;
+ /* Only iter on nodes once (if the link is the same). */
+ bool found_other = false;
+ for (bNodeLink *_link = ntree->links.first; _link; _link = _link->next) {
+ if (_link->fromnode == link->fromnode && _link->tonode != node_start) {
+ found_other = true;
+ break;
+ }
+ }
+ if (!found_other) {
+ continue;
+ }
}
else {
link->fromnode->iter_flag = 1;