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 maximum undo steps in UndoRedo #87353

Merged
merged 1 commit into from
Jan 24, 2024

Conversation

OverloadedOrama
Copy link
Contributor

@OverloadedOrama OverloadedOrama commented Jan 19, 2024

Implements godotengine/godot-proposals#3575 and brings back the removed code from #15494, with added documentation.

For the future, I think adding a limit for the maximum memory usage as suggested in godotengine/godot-proposals#3575 (comment) is still worth it, if max steps and maximum memory can even work together, but I don't know how to implement that.

Tested with Pixelorama, it seems to be working as intended.

Production edit: Closes godotengine/godot-proposals#3575

@AThousandShips AThousandShips added this to the 4.x milestone Jan 19, 2024
core/object/undo_redo.cpp Outdated Show resolved Hide resolved
@KoBeWi

This comment was marked as resolved.

@akien-mga akien-mga modified the milestones: 4.x, 4.3 Jan 19, 2024
doc/classes/UndoRedo.xml Outdated Show resolved Hide resolved
Copy link
Contributor

@YuriSizov YuriSizov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs needs some adjustments, but looks good otherwise.

@YuriSizov YuriSizov merged commit 412f5b3 into godotengine:master Jan 24, 2024
16 checks passed
@YuriSizov
Copy link
Contributor

Thanks!

@OverloadedOrama OverloadedOrama deleted the max-undo-steps branch January 24, 2024 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reimplement maximum undo steps in UndoRedo
6 participants