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

Reduced output spam from rapid property changes #84795

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion core/object/undo_redo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ void UndoRedo::commit_action(bool p_execute) {
return; //still nested
}

bool add_message = !merging;

if (merging) {
version--;
merging = false;
Expand All @@ -314,7 +316,7 @@ void UndoRedo::commit_action(bool p_execute) {
_redo(p_execute); // perform action
committing--;

if (callback && actions.size() > 0) {
if (add_message && callback && actions.size() > 0) {
KoBeWi marked this conversation as resolved.
Show resolved Hide resolved
callback(callback_ud, actions[actions.size() - 1].name);
}
}
Expand Down