summaryrefslogtreecommitdiff
path: root/editor/plugins/gradient_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-01-16 09:24:50 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-01-16 09:24:50 +0100
commitda57e0059e8f62a0863675a973e19af51e5359bf (patch)
tree0c49bbbc4f89ca797c223c723234dcab0b12fc6d /editor/plugins/gradient_editor.cpp
parent6a487cc243a2fb73cf2a4ee14c5b1d9ca5847b0f (diff)
parentb58111588a62fcdd238f93129cd48a1dbb1d5237 (diff)
Merge pull request #70504 from KoBeWi/the_choosen_antipattern
Add EditorUndoRedoManager singleton
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 68aafd6fa8..3676c2c222 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();
+ EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton();
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());