mirror of
https://github.com/godotengine/godot
synced 2024-09-04 22:08:29 +00:00
Reduced output spam from rapid property changes
This commit is contained in:
parent
5abeb043d0
commit
4006397339
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue