Page Menu
Home
Search
Configure Global Search
Log In
Paste
P1133
T70614 snippet
Active
Public
Actions
Authored by
Philipp Oeser (lichtwerk)
on Oct 8 2019, 7:01 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Tags
None
Subscribers
None
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;
Event Timeline
Philipp Oeser (lichtwerk)
created this paste.
Oct 8 2019, 7:01 PM
Philipp Oeser (lichtwerk)
mentioned this in
T70614: Texture won't display or won't do correctly on eevee when used as bump and other input
.
Oct 8 2019, 7:06 PM
Log In to Comment