summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorFireForge <67974470+fire-forge@users.noreply.github.com>2022-04-20 15:41:30 -0500
committerFireForge <67974470+fire-forge@users.noreply.github.com>2022-04-20 15:41:30 -0500
commita384031326b96dd1185b7ba33809660ba5551549 (patch)
treea5a5aed259d912a113ddf1adb006890948c2d33e /editor/plugins
parentf4b0c7a1ea8d86c1dfd96478ca12ad1360903d9d (diff)
Fix UndoRedo in Gradient editor
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/gradient_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/gradient_editor_plugin.cpp b/editor/plugins/gradient_editor_plugin.cpp
index e9d7808684..1386f03662 100644
--- a/editor/plugins/gradient_editor_plugin.cpp
+++ b/editor/plugins/gradient_editor_plugin.cpp
@@ -55,7 +55,7 @@ void GradientEditor::_gradient_changed() {
void GradientEditor::_ramp_changed() {
editing = true;
UndoRedo *undo_redo = EditorNode::get_singleton()->get_undo_redo();
- undo_redo->create_action(TTR("Gradient Edited"));
+ undo_redo->create_action(TTR("Gradient Edited"), UndoRedo::MERGE_ENDS);
undo_redo->add_do_method(gradient.ptr(), "set_offsets", get_offsets());
undo_redo->add_do_method(gradient.ptr(), "set_colors", get_colors());
undo_redo->add_do_method(gradient.ptr(), "set_interpolation_mode", get_interpolation_mode());