Merge pull request #57 from InventivetalentDev/master

check if the slots are available, to catch any unwanted exceptions (#56)
This commit is contained in:
Javi Agenjo
2018-11-20 16:43:45 +01:00
committed by GitHub
2 changed files with 7619 additions and 7617 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -5831,6 +5831,7 @@ LGraphCanvas.prototype.drawConnections = function(ctx)
var start_slot = start_node.outputs[start_node_slot];
var end_slot = node.inputs[i];
if(!start_slot || !end_slot) continue;
var start_dir = start_slot.dir || (start_node.flags.horizontal ? LiteGraph.DOWN : LiteGraph.RIGHT);
var end_dir = end_slot.dir || (node.flags.horizontal ? LiteGraph.UP : LiteGraph.LEFT);