RPTools / maptool

Virtual Tabletop for playing roleplaying games with remote players or face to face.

Home Page:http://rptools.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

kwvanderlinde opened this issue · comments

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