From 1974e6e4a3fa9f6217857334946bc3c9086ee8ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Sun, 28 Jul 2024 09:04:41 +0200 Subject: [PATCH] Revert to pre-v12 maeasureDistances to restore gridless functionality --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 0a361dc..bbb985c 100644 --- a/src/main.js +++ b/src/main.js @@ -251,7 +251,7 @@ function applyGridlessSnapping(event) { return {ray}; }); origin = segments.pop().ray.A; - waypointDistance = canvas.grid.measurePath(segments).reduce((a, b) => a + b); + waypointDistance = canvas.grid.measureDistances(segments).reduce((a, b) => a + b); origin = {x: origin.x, y: origin.y}; }