summaryrefslogtreecommitdiffstats
path: root/editor/plugins/gradient_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-11-02 18:54:05 +0100
committerRémi Verschelde <rverschelde@gmail.com>2022-11-02 18:54:05 +0100
commiteefba5bc3309d57c357bc6b9bbf06d25f47a29cf (patch)
treea11a1f7cfcf65719815138613e361920f8094fa5 /editor/plugins/gradient_editor.cpp
parent30e4e7c083f4a81b7aa71222205945e649ad8189 (diff)
parent15831e381bdfc1d086e1d7dca0d501e4c8dcf4d5 (diff)
downloadredot-engine-eefba5bc3309d57c357bc6b9bbf06d25f47a29cf.tar.gz
Merge pull request #65062 from KoBeWi/RedoUndo
Unify usage of undo_redo in editor
Diffstat (limited to 'editor/plugins/gradient_editor.cpp')
-rw-r--r--editor/plugins/gradient_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/gradient_editor.cpp b/editor/plugins/gradient_editor.cpp
index 822f303d93..7039ada10a 100644
--- a/editor/plugins/gradient_editor.cpp
+++ b/editor/plugins/gradient_editor.cpp
@@ -99,7 +99,7 @@ void GradientEditor::_gradient_changed() {
void GradientEditor::_ramp_changed() {
editing = true;
- Ref<EditorUndoRedoManager> undo_redo = EditorNode::get_undo_redo();
+ Ref<EditorUndoRedoManager> &undo_redo = EditorNode::get_undo_redo();
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());