Kruptein / PlanarAlly

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

[BUG] Polygon edit tool overlay does not follow shape correctly when rotated #1318

Closed rexy712 closed 11 months ago

rexy712 commented 11 months ago

Describe the bug While modifying a rotated shape drawn with the polygon tool or brush tool, the overlay with the snip and add point/remove point option does not follow the lines of the polygon. It still appears but not at the correct location. It seems to follow the shape as though no rotation had been applied to it.

To Reproduce Steps to reproduce the behavior:

  1. Create a non-regular shape with the polygon or brush tool.
  2. Change to the Select tool.
  3. Rotate the shape any amount.
  4. Hover over a line of the shape while the shape is selected.
  5. The snip/add point overlay does not appear.

Expected behavior The overlay should follow the lines while rotated as it correctly does while not rotated.

Screenshots

https://github.com/Kruptein/PlanarAlly/assets/2442544/8cf786e9-1962-4351-b244-ebfe99baf404

Desktop: