Polylines that are applied by pressing the Enter key cannot be undone.
Polylines applied by double-clicking work as expected.
### Actual Results
Polyline cannot be undone.
### Expected Results
I would expect the Polyline to be undoable whether I double-clicked or pressed Enter to apply it.
### Video or Image Reference
https://github.com/user-attachments/assets/71151805-c96c-4c4f-8ce0-18260854a753
### Steps to reproduce
1. Activate and use the Polyline tool
2. Press Enter to apply it
3. Attempt to Undo (with either `Ctrl + Z` or `Edit > Undo`)
4. Use the Polyline tool again but double-click to apply it
5. Attempt to Undo again
### System Information
+ Pencil2D Version: `Nightly Build Jun 17 2024`
+ Operating System: `Windows 10`
+ RAM Size: `64 GB`
Issue Summary
Polylines that are applied by pressing the Enter key cannot be undone.
Polylines applied by double-clicking work as expected.
### Actual Results Polyline cannot be undone. ### Expected Results I would expect the Polyline to be undoable whether I double-clicked or pressed Enter to apply it. ### Video or Image Reference https://github.com/user-attachments/assets/71151805-c96c-4c4f-8ce0-18260854a753 ### Steps to reproduce 1. Activate and use the Polyline tool 2. Press Enter to apply it 3. Attempt to Undo (with either `Ctrl + Z` or `Edit > Undo`) 4. Use the Polyline tool again but double-click to apply it 5. Attempt to Undo again ### System Information + Pencil2D Version: `Nightly Build Jun 17 2024` + Operating System: `Windows 10` + RAM Size: `64 GB`