summaryrefslogtreecommitdiffstats
path: root/editor/plugins/navigation_link_2d_editor_plugin.cpp
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-11-24 18:28:49 +0100
committerkobewi <kobewi4e@gmail.com>2022-11-24 18:56:22 +0100
commit8a3d2f4e0c452a1d333f45cf106d2397f4c8b873 (patch)
tree6187c39943c792b2b3277f06b92e2d46ee1fa45c /editor/plugins/navigation_link_2d_editor_plugin.cpp
parentcd3d6e63a630414297cb580bcc891a0aa9f25127 (diff)
downloadredot-engine-8a3d2f4e0c452a1d333f45cf106d2397f4c8b873.tar.gz
Cleanup remaining EditorUndoRedoManager usages
Diffstat (limited to 'editor/plugins/navigation_link_2d_editor_plugin.cpp')
-rw-r--r--editor/plugins/navigation_link_2d_editor_plugin.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/editor/plugins/navigation_link_2d_editor_plugin.cpp b/editor/plugins/navigation_link_2d_editor_plugin.cpp
index b72f639fbf..560454e5d3 100644
--- a/editor/plugins/navigation_link_2d_editor_plugin.cpp
+++ b/editor/plugins/navigation_link_2d_editor_plugin.cpp
@@ -85,6 +85,7 @@ bool NavigationLink2DEditor::forward_canvas_gui_input(const Ref<InputEvent> &p_e
end_grabbed = false;
}
} else {
+ Ref<EditorUndoRedoManager> &undo_redo = EditorNode::get_undo_redo();
if (start_grabbed) {
undo_redo->create_action(TTR("Set start_location"));
undo_redo->add_do_method(node, "set_start_location", node->get_start_location());
@@ -165,10 +166,6 @@ void NavigationLink2DEditor::edit(NavigationLink2D *p_node) {
canvas_item_editor->update_viewport();
}
-NavigationLink2DEditor::NavigationLink2DEditor() {
- undo_redo = EditorNode::get_undo_redo();
-}
-
///////////////////////
void NavigationLink2DEditorPlugin::edit(Object *p_object) {