-
Notifications
You must be signed in to change notification settings - Fork 275
Closed
Labels
Description
Describe the bug
Tokens which are not set to snap-to-grid have bad last path info stored in them.
To Reproduce
Steps to reproduce the behavior:
- Drop token on map (any grid type).
- Ensure Snap-to-grid is off. (Right-click -> No check on Snap-to-grid)
- Drag token any distance.
- Right-click on token and select Last Path.
- See path has many waypoints indicated.
- Impersonate token and execute [r: json.indent(getLastPath(1))] from chat.
7: See path with hundreds of points.
Expected behavior
Dragging a token should produce a path that only has the start and end points plus any waypoints selected on the way.
Screenshots
Dragging Token:

Resulting Path:

MapTool Info
- Version: Nerps 1.4.5.3 plus 1.4.1.8, 1.4.1.7 NOT in 1.4.0.5
- Install: JAR
Desktop (please complete the following information):
- OS: Windows 10x64
- Version [10, 18.03]
- Java: "10.0.1" 2018-04-17
Additional context
See identical issue posted on Nerps fork: JamzTheMan#109
Reactions are currently unavailable