We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29c896c commit a362c86Copy full SHA for a362c86
src/main/java/com/marginallyclever/nodegraphcore/Graph.java
@@ -157,9 +157,7 @@ public void removeConnectionsToNode(Node n) {
157
*/
158
public boolean nodeHasInputConnections(Node node) {
159
for(Connection c : connections) {
160
- for(int i = 0; i<node.getNumPorts(); ++i) {
161
- if(c.getInput() == node.getPort(i)) return true;
162
- }
+ if(c.getTo() == node) return true;
163
}
164
return false;
165
0 commit comments