Shape painter drawing lines towards 0;0


Variable(X) and Variable(Y) are floor(CursorX()) and floor(CursorY())

Issue: No matter where I start the drawing, it always has a unexpected corner in 0;0 or at an area near it.

I don’t know if this is a bug or the way it works but the shape painter seems to reset the path start each time it redraws. That makes sense when you close the path that the start point would reset to its default location of 0,0 but I’m not sure if that makes sense if you don’t close the path. It’s still refreshing in a way, so I guess the start would reset. IDK.

I decided to try this using one variable named polygon.set as an array using a structure
I set the start each time using polygon[0] x and y.