Caraxi / SimpleTweaksPlugin

GNU Affero General Public License v3.0
139 stars 120 forks source link

Use origins when calculating scaled node position #735

Closed nebel closed 1 month ago

nebel commented 1 month ago

Changes GetNodePosition to consider the node's (and parent nodes') OriginX and OriginY when calculating node position. This makes DrawOutline draw the correct position for nodes and the children of nodes with a non-zero scale origin.

Tested with various situations including origin-scaled children of origin-scaled parent and things seemed to work fine with this logic.