Skip to content

Commit

Permalink
add port if wires array > number of ports declared.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Conway-Jones committed Jan 6, 2017
1 parent d131add commit e6de267
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/js/nodes.js
Expand Up @@ -165,6 +165,7 @@ RED.nodes = (function() {
configNodes[n.id] = n;
} else {
n.ports = [];
if (n.wires && (n.wires.length > n.outputs)) { n.outputs = n.wires.length; }
if (n.outputs) {
for (var i=0;i<n.outputs;i++) {
n.ports.push(i);
Expand Down

0 comments on commit e6de267

Please sign in to comment.