From 1abe982b2496e01a0ff28a595176277dc82e3f9c Mon Sep 17 00:00:00 2001 From: Isaiah Odhner Date: Wed, 11 Dec 2019 19:15:17 -0500 Subject: [PATCH] Fix brush continuity --- src/tools.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tools.js b/src/tools.js index 36f8525..b6c673b 100644 --- a/src/tools.js +++ b/src/tools.js @@ -1104,8 +1104,7 @@ tools.forEach((tool)=> { const brush = tool.get_brush(); const circumference_points = get_circumference_points_for_brush(brush.shape, brush.size); tool.mask_canvas.ctx.fillStyle = stroke_color; - const iterate_line = brush.shape.match(/diagonal/) ? brosandham_line : bresenham_line; - iterate_line(pointer_previous.x, pointer_previous.y, pointer.x, pointer.y, (x, y)=> { + brosandham_line(pointer_previous.x, pointer_previous.y, pointer.x, pointer.y, (x, y)=> { for (const point of circumference_points) { tool.mask_canvas.ctx.fillRect(x + point.x, y + point.y, 1, 1); }