From 4006397339c4f9fafcc51f8545651676103ea16f Mon Sep 17 00:00:00 2001 From: Sofox Date: Sun, 12 Nov 2023 14:33:02 +0000 Subject: [PATCH] Reduced output spam from rapid property changes --- core/object/undo_redo.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/object/undo_redo.cpp b/core/object/undo_redo.cpp index 1d0dff526ddc..3c1d4ef95ea8 100644 --- a/core/object/undo_redo.cpp +++ b/core/object/undo_redo.cpp @@ -301,6 +301,8 @@ void UndoRedo::commit_action(bool p_execute) { return; //still nested } + bool add_message = !merging; + if (merging) { version--; merging = false; @@ -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) { callback(callback_ud, actions[actions.size() - 1].name); } }