From a4343cc6bbae4aaf46f0e2b81b00d359133bd259 Mon Sep 17 00:00:00 2001 From: inventivetalent Date: Fri, 19 Oct 2018 17:32:11 +0200 Subject: [PATCH] remove duplicate beginPath --- src/litegraph.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/litegraph.js b/src/litegraph.js index 760932510..525f87405 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -5245,7 +5245,6 @@ LGraphCanvas.prototype.drawNode = function(node, ctx ) if (slot.type === LiteGraph.EVENT || slot.shape === LiteGraph.BOX_SHAPE) { ctx.rect((pos[0] - 6) + 0.5, (pos[1] - 5) + 0.5, 14, 10); } else if (slot.shape === LiteGraph.ARROW_SHAPE) { - ctx.beginPath(); ctx.moveTo(pos[0] + 8, pos[1] + 0.5); ctx.lineTo(pos[0] - 4, (pos[1] + 6) + 0.5); ctx.lineTo(pos[0] - 4, (pos[1] - 6) + 0.5); @@ -5292,7 +5291,6 @@ LGraphCanvas.prototype.drawNode = function(node, ctx ) if (slot.type === LiteGraph.EVENT || slot.shape === LiteGraph.BOX_SHAPE) { ctx.rect((pos[0] - 6) + 0.5,(pos[1] - 5) + 0.5,14,10); } else if (slot.shape === LiteGraph.ARROW_SHAPE) { - ctx.beginPath(); ctx.moveTo(pos[0] + 8, pos[1] + 0.5); ctx.lineTo(pos[0] - 4, (pos[1] + 6) + 0.5); ctx.lineTo(pos[0] - 4, (pos[1] - 6) + 0.5);