pencil2d / pencil

Pencil2D is an easy, intuitive tool to make 2D hand-drawn animations. Pencil2D is open source and cross-platform.
http://pencil2d.org
GNU General Public License v2.0
1.45k stars 272 forks source link

Cannot undo a Polyline created with the Enter key #1859

Closed HeCorr closed 2 months ago

HeCorr commented 2 months ago

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`
HeCorr commented 2 months ago

I would like to give this one a shot, please assign me 🙂