From a5b40382d795e909c41b923295cdd14d330dd16a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Fri, 28 Jan 2022 23:59:51 +0100 Subject: [PATCH] Don't remove calculated path when a new waypoint is created --- src/ruler.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ruler.js b/src/ruler.js index 748012b..d5553c2 100644 --- a/src/ruler.js +++ b/src/ruler.js @@ -81,6 +81,7 @@ export function extendRuler() { } this.waypoints.push(new PIXI.Point(point.x, point.y)); this.labels.addChild(new PreciseText("", CONFIG.canvasTextStyle)); + this.waypoints.filter(waypoint => waypoint.isPathfinding).forEach(waypoint => waypoint.isPathfinding = false); } dragRulerAddWaypointHistory(waypoints) {