Skip to content

Undo / redo for LevelNotes#595

Open
acpushbutton wants to merge 3 commits intoluciusDXL:masterfrom
acpushbutton:noteundo
Open

Undo / redo for LevelNotes#595
acpushbutton wants to merge 3 commits intoluciusDXL:masterfrom
acpushbutton:noteundo

Conversation

@acpushbutton
Copy link
Contributor

Adds the functions and hooks to implement stepwise undo / redo for LevelNote objects.

It follows the structure and naming conventions of other object categories in the history system, extending enums as necessary, leveraging the existing read/writeLevelNoteFromSnapshot functions which already captures note data in full snapshots. It's a simple capture of the entire LevelNote vector, no optimisations for single item changes.

Includes logic to bundle sequential attribute updates into a single history step to reduce noise, like that from working in the Info Panel.

Some minor changes to editNotes.cpp to capture events correctly for the history system. It looks like this belongs in editTransform.cpp but decided against that to keep the scope reasonable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant