Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Undo #7

Open
luis-l opened this issue Jun 15, 2020 · 0 comments
Open

Implement Undo #7

luis-l opened this issue Jun 15, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@luis-l
Copy link
Owner

luis-l commented Jun 15, 2020

The editor should have its own undo structure, so it does not interfere with Unity's undo.

Ideally, control+u would be the default undo action trigger. Unsure if it is possible to prevent Unity from also using control+u after the BonsaiEditor uses it.

I think a persistent data structure could be used as the underlying mechanism for undo. This will store state for every tree change. Undo/Redo will simply be moving up or down a list which stores copies of the persistent data structure.

@luis-l luis-l added the enhancement New feature or request label Jul 14, 2020
@luis-l luis-l self-assigned this Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant