diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2022-08-22 22:37:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-22 22:37:33 +0200 |
| commit | b8a64313f0675a7e781e21b530a43d824651f44d (patch) | |
| tree | aaa24e4d70cbc2135edade0780650c8c666fc196 /editor/plugins/gradient_editor_plugin.cpp | |
| parent | 9c567a0604f1cedcce3dfa1a707d3671c51a0155 (diff) | |
| parent | ece3df39386af85b069cbb67ae1893b4365f1bd3 (diff) | |
| download | redot-engine-b8a64313f0675a7e781e21b530a43d824651f44d.tar.gz | |
Merge pull request #59564 from KoBeWi/FINALLY,_ULTIMATE_UNDO_REDO
Diffstat (limited to 'editor/plugins/gradient_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/gradient_editor_plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/gradient_editor_plugin.cpp b/editor/plugins/gradient_editor_plugin.cpp index 542aee879b..460178490e 100644 --- a/editor/plugins/gradient_editor_plugin.cpp +++ b/editor/plugins/gradient_editor_plugin.cpp @@ -34,6 +34,7 @@ #include "editor/editor_node.h" #include "editor/editor_scale.h" #include "editor/editor_settings.h" +#include "editor/editor_undo_redo_manager.h" #include "node_3d_editor_plugin.h" Size2 GradientEditor::get_minimum_size() const { @@ -55,7 +56,7 @@ void GradientEditor::_gradient_changed() { void GradientEditor::_ramp_changed() { editing = true; - UndoRedo *undo_redo = EditorNode::get_singleton()->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()); |
