Skip to content

Commit

Permalink
Check node props when deciding if pasted node can splice links
Browse files Browse the repository at this point in the history
Fixes #2494
  • Loading branch information
knolleary committed Mar 29, 2020
1 parent 84771f5 commit 6ae7c51
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3531,8 +3531,10 @@ RED.view = (function() {
if (new_ms.length === 1) {
node = new_ms[0];
spliceActive = node.n.hasOwnProperty("_def") &&
node.n._def.inputs > 0 &&
node.n._def.outputs > 0;
((node.n.hasOwnProperty("inputs") && node.n.inputs > 0) || (!node.n.hasOwnProperty("inputs") && node.n._def.inputs > 0)) &&
((node.n.hasOwnProperty("outputs") && node.n.outputs > 0) || (!node.n.hasOwnProperty("outputs") && node.n._def.outputs > 0))


}
}
RED.keyboard.add("*","escape",function(){
Expand Down

0 comments on commit 6ae7c51

Please sign in to comment.