The polyline tool acts weird when trying to undo

bandicam 2025-05-25 07-02-04-039

Basically, undoing actions after using the line tool results in it undoing other lines drawn. Also, if the first lines I draw are with the line tool, then pressing Ctrl+Z will do nothing (the lines will just stay there).

To specify, I’m using Windows 10 on the latest version of Pencil2D. (Also, this issue was prevalent with the previous version I was using as well.)

I do not think it is a problem with the drawing pad I’m using (which is a Veikk drawing pad).

Could someone tell me what’s wrong or how to fix this?