Merge pull request #84795 from TheSofox/prevent-property-change-output-spam
Reduced output spam from rapid property changes
This commit is contained in:
commit
404c995ab3
|
@ -301,6 +301,8 @@ void UndoRedo::commit_action(bool p_execute) {
|
||||||
return; //still nested
|
return; //still nested
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool add_message = !merging;
|
||||||
|
|
||||||
if (merging) {
|
if (merging) {
|
||||||
version--;
|
version--;
|
||||||
merging = false;
|
merging = false;
|
||||||
|
@ -314,7 +316,7 @@ void UndoRedo::commit_action(bool p_execute) {
|
||||||
_redo(p_execute); // perform action
|
_redo(p_execute); // perform action
|
||||||
committing--;
|
committing--;
|
||||||
|
|
||||||
if (callback && actions.size() > 0) {
|
if (add_message && callback && actions.size() > 0) {
|
||||||
callback(callback_ud, actions[actions.size() - 1].name);
|
callback(callback_ud, actions[actions.size() - 1].name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue