-
-
Notifications
You must be signed in to change notification settings - Fork 191
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 system (WIP) #115
Conversation
The gist of it:
Additional thing to consider: Right now we are using the object ID from the entity to track it. Ideally we likely want to track a more consistent ID / UUID / unique entity name, to support things like undo for entity creation/deletion, and scenarios where entities may load/unload in editor. Could track by weak_ptr or shared_ptr too but that wouldn't solve the aforementioned issue. |
Simple, gets the job done, I like it. I'll talk to you in Discord about the IDs. |
Hello, Can I ask what is left to be done on this PR ? From what I can understand a basic MVP of the undo system is there. Why not trial it as is and let people come up with ideas on how to make it better or simply make other commands for their favourite features ? Best, |
Hey, sorry I’ve been swamped and haven’t been able to work much on this, but the idea is to get basic undo functionality going I guess before merging this. I’m working right now on implementing internal serialization to facilitate undoing object deletion and similar. |
Oh Cool. Yeah dont worry about the timing everybody have life to deal with. Keep up the good work. Best, |
The foundation is there, once functionality of existing commands is glitch free (say transform gizmo manipulation), I can merge this, and we'll take it from there. Thanks! |
What's the issue with the transform gizmo again ? |
This PR is still a work in progress and shouldn't be merged yet.
Implements the foundation for an undo system. Have tried to follow existing codebase style and idioms.
Needs to fix before merge: