diff --git a/src/ruler.js b/src/ruler.js index 5163a47..896246c 100644 --- a/src/ruler.js +++ b/src/ruler.js @@ -32,8 +32,13 @@ export function extendRuler() { const json = super.toJSON(); if (this.draggedEntity) { const isToken = this.draggedEntity instanceof Token; - json["draggedEntityIsToken"] = isToken; - json["draggedEntity"] = this.draggedEntity.id; + json.draggedEntityIsToken = isToken; + json.draggedEntity = this.draggedEntity.id; + json.waypoints = json.waypoints.map(old => { + let w = duplicate(old); + w.isPathfinding = undefined; + return w; + }); } return json; }