We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a40e8e9 commit 9647de4Copy full SHA for 9647de4
src/main/java/com/marginallyclever/nodegraphcore/Node.java
@@ -335,7 +335,10 @@ public List<Node> getDownstreamNodes() {
335
for(var v : ports) {
336
if(v instanceof Output<?> k) {
337
for( var to : k.getTo()) {
338
- downstreamNodes.add(to.getOtherNode(this));
+ var destination = to.getOtherNode(this);
339
+ if(destination!=null && !downstreamNodes.contains(destination)) {
340
+ downstreamNodes.add(destination);
341
+ }
342
}
343
344
0 commit comments