Add per-scene UndoRedo
This commit is contained in:
@ -37,6 +37,7 @@
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/editor_settings.h"
|
||||
#include "editor/editor_undo_redo_manager.h"
|
||||
#include "editor/plugins/node_3d_editor_plugin.h"
|
||||
#include "scene/3d/camera_3d.h"
|
||||
#include "scene/main/window.h"
|
||||
|
||||
@ -39,6 +39,7 @@
|
||||
#include "scene/gui/slider.h"
|
||||
#include "scene/gui/spin_box.h"
|
||||
|
||||
class EditorUndoRedoManager;
|
||||
class Node3DEditorPlugin;
|
||||
|
||||
class GridMapEditor : public VBoxContainer {
|
||||
@ -62,7 +63,7 @@ class GridMapEditor : public VBoxContainer {
|
||||
DISPLAY_LIST
|
||||
};
|
||||
|
||||
UndoRedo *undo_redo = nullptr;
|
||||
Ref<EditorUndoRedoManager> undo_redo;
|
||||
InputAction input_action = INPUT_NONE;
|
||||
Panel *panel = nullptr;
|
||||
MenuButton *options = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user