Skip to content

Non-snap-to-grid Tokens have bad last path info #210

@Phergus

Description

@Phergus

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:

  1. Drop token on map (any grid type).
  2. Ensure Snap-to-grid is off. (Right-click -> No check on Snap-to-grid)
  3. Drag token any distance.
  4. Right-click on token and select Last Path.
  5. See path has many waypoints indicated.
  6. 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:
screenshot 2018-10-15 15 16 44
Resulting Path:
screenshot 2018-10-15 15 16 51

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

Metadata

Metadata

Assignees

Labels

bugmediumMedium priority bug/enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions