RPTools / maptool

Virtual Tabletop for playing roleplaying games with remote players or face to face.
http://rptools.net
GNU Affero General Public License v3.0
800 stars 262 forks source link

Fix hexagon geometry #4831

Closed kwvanderlinde closed 4 months ago

kwvanderlinde commented 5 months ago

Identify the Bug or Feature request

Fixes #2840 Fixes #4830

Description of the Change

A number of underlying problems with hex grid have been fixed:

With the above, whatever the users sets in the "2nd Size" input is kept and is reflected in the map. Previously, typing in 100 x 400 would change the second size and result in this: image Now the 400 is kept and we see this: image

Some general grid clean up is included as well:

Possible Drawbacks

If loading an existing campaign with really stretched out hex grids, snap-to-grid tokens will not end up in the same cell as before. Since the cell dimensions were not accurate before, the conversion between a tokens real position and its cell has changed.

Documentation Notes

N/A

Release Notes


This change is Reviewable