Unify usage of undo_redo in editor
This commit is contained in:
parent
604abb434f
commit
15831e381b
47 changed files with 205 additions and 224 deletions
|
|
@ -45,7 +45,6 @@
|
|||
class EditorData;
|
||||
class CanvasItemEditorViewport;
|
||||
class ViewPanner;
|
||||
class EditorUndoRedoManager;
|
||||
|
||||
class CanvasItemEditorSelectedItem : public Object {
|
||||
GDCLASS(CanvasItemEditorSelectedItem, Object);
|
||||
|
|
@ -401,8 +400,6 @@ private:
|
|||
void _prepare_grid_menu();
|
||||
void _on_grid_menu_id_pressed(int p_id);
|
||||
|
||||
Ref<EditorUndoRedoManager> undo_redo;
|
||||
|
||||
List<CanvasItem *> _get_edited_canvas_items(bool retrieve_locked = false, bool remove_canvas_item_if_parent_in_selection = true);
|
||||
Rect2 _get_encompassing_rect_from_list(List<CanvasItem *> p_list);
|
||||
void _expand_encompassing_rect_using_children(Rect2 &r_rect, const Node *p_node, bool &r_first, const Transform2D &p_parent_xform = Transform2D(), const Transform2D &p_canvas_xform = Transform2D(), bool include_locked_nodes = true);
|
||||
|
|
@ -548,7 +545,6 @@ public:
|
|||
Tool get_current_tool() { return tool; }
|
||||
void set_current_tool(Tool p_tool);
|
||||
|
||||
void set_undo_redo(Ref<EditorUndoRedoManager> p_undo_redo);
|
||||
void edit(CanvasItem *p_canvas_item);
|
||||
|
||||
void focus_selection();
|
||||
|
|
@ -593,7 +589,6 @@ class CanvasItemEditorViewport : public Control {
|
|||
Node *target_node = nullptr;
|
||||
Point2 drop_pos;
|
||||
|
||||
EditorData *editor_data = nullptr;
|
||||
CanvasItemEditor *canvas_item_editor = nullptr;
|
||||
Control *preview_node = nullptr;
|
||||
AcceptDialog *accept = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue