diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js index 896988d..38e6d0f 100644 --- a/js/tools/SelectionTool.js +++ b/js/tools/SelectionTool.js @@ -214,8 +214,6 @@ class SelectionTool extends Tool { let selected = []; let visited = {}; let data = currFile.VFXLayer.context.getImageData(0, 0, currFile.canvasSize[0], currFile.canvasSize[1]).data; - - data = this.reconstructSelection(data); // BFS: a pixel that causes the algorithm to visit a pixel of the bounding box is outside the // selection. Otherwise, since the algorithm stops visiting when it reaches the outline, @@ -251,109 +249,6 @@ class SelectionTool extends Tool { return this.previewData; } - reconstructSelection(data) { - let x, y, index; - let fill = false; - - if (this.reconstruct.top) { - y = Math.max(this.boundingBox.minY, 0); - this.boundingBox.minY = y; - - for (x=this.boundingBox.minX; x