You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-14 13:41:12 +00:00
Cleanup remaining EditorUndoRedoManager usages
This commit is contained in:
@@ -77,6 +77,7 @@ bool Cast2DEditor::forward_canvas_gui_input(const Ref<InputEvent> &p_event) {
|
||||
return false;
|
||||
}
|
||||
} else if (pressed) {
|
||||
Ref<EditorUndoRedoManager> &undo_redo = EditorNode::get_undo_redo();
|
||||
undo_redo->create_action(TTR("Set target_position"));
|
||||
undo_redo->add_do_property(node, "target_position", target_position);
|
||||
undo_redo->add_do_method(canvas_item_editor, "update_viewport");
|
||||
@@ -130,10 +131,6 @@ void Cast2DEditor::edit(Node2D *p_node) {
|
||||
canvas_item_editor->update_viewport();
|
||||
}
|
||||
|
||||
Cast2DEditor::Cast2DEditor() {
|
||||
undo_redo = EditorNode::get_singleton()->get_undo_redo();
|
||||
}
|
||||
|
||||
///////////////////////
|
||||
|
||||
void Cast2DEditorPlugin::edit(Object *p_object) {
|
||||
|
||||
Reference in New Issue
Block a user