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

Don't print error on empty actions #65754

Merged
merged 1 commit into from
Sep 13, 2022

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Sep 13, 2022

Fixes #65729
The history ID is assigned on first do/undo method, so invalid ID means there was no action. I changed the error to no-op.
Committing empty action is not possible, because there is no UndoRedo object involved.

// This assigns context to pending action.
// This assigns history to pending action.
Copy link
Member Author

Choose a reason for hiding this comment

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

I think this is leftover from before I renamed "context" to "history".

@akien-mga akien-mga merged commit 315eade into godotengine:master Sep 13, 2022
@akien-mga
Copy link
Member

Thanks!

@KoBeWi KoBeWi deleted the nothing_to_do_here branch September 13, 2022 19:37
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.

Committing a undo redo action without method causes an "INVALID_HISTORY" error
2 participants