Kruptein / PlanarAlly

A companion tool for when you travel into the planes.
https://www.planarally.io/
MIT License
392 stars 71 forks source link

[BUG] PA wrongly scale assets automatically #1345

Closed andreazorzi closed 6 months ago

andreazorzi commented 6 months ago

Describe the bug Asset with dimension in filename (eg. ghoul_1x1.png), will not correctly resize if default grid scale is changed. For example using the metric system (1.5 mt) the asset will be 3.333333 square length.

To Reproduce Steps to reproduce the behavior:

  1. In DM map mode open DM Settings -> Grid
  2. Change Unit Size value to 1.5
  3. Import an asset named like ghoul_1x1.png
  4. The size is not 1 square length

Expected behavior The asset should be imported with length of 1 square

Additional context It seems that the Unit Size value used to calculate the asset is taken from a constant instead of the updated value.