Don't remove calculated path when a new waypoint is created

This commit is contained in:
Manuel Vögele
2022-01-28 23:59:51 +01:00
parent ce9bea14fc
commit a5b40382d7
+1
View File
@@ -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) {