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.
Changes
GetNodePosition
to consider the node's (and parent nodes')OriginX
andOriginY
when calculating node position. This makesDrawOutline
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.