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
787 stars 259 forks source link

[Bug]: Hex grid lightting broken if grid is adjusted before any lights are displayed #4830

Closed kwvanderlinde closed 3 months ago

kwvanderlinde commented 3 months ago

Describe the Bug

When MapTool is first opened, if the map is changed to a hex grid and the grid is adjusted before showing any grid lights, then grid lights will evermore not have the correct shape.

To Reproduce

  1. Open MapTool
  2. Edit the map and change to a vertical hex
  3. Adjust the grid, setting the size to 100 and the 2nd dimension to 400 (which will change to ~200 due to #2840).
  4. Edit campaign properties and add this light: grid: grid 20#000000
  5. Add a token to the map
  6. Attach the grid light to the token
  7. See the strange light shape that occurs.

Expected Behaviour

The grid lighting should be a simple area with no holes.

Screenshots

image

MapTool Info

1.13.2, develop

Desktop

Linux Mint 21.3

Additional Context

No response