RPTools/maptool

[Bug]: Token VBL does not respect the token layout.

Closed this issue · 1 comments

Describe the Bug

When a token's layout is changed, the topology is not transformed along with the image.

To Reproduce

  1. Add a token to a map.
  2. Add some VBL to the token.
  3. Open the topology tools to see the VBL on the token.
  4. Edit the token to have an offset and a scale.
  5. Notice the VBL is still at the same location and size.

Expected Behaviour

The token topology should be transformed in the same way as the token image.

Screenshots

On 1.17.1:
Image

On 1.18.1:
Image

MapTool Info

1.18.1

Desktop

Linux Mint 22.1

Additional Context

No response

After testing, there's still an issue with the topology being misplaced and incorrectly scaled when transferring from the map to the token. It also only move the topology from under the token footprint, but it should move the topology from under the token image bounds. Going the other work works correctly, though.

As part of fixing this, I may separate "token bounds" and "token footprint bounds" into separate concepts, as different parts of the code may need one or the other.