summaryrefslogtreecommitdiff
path: root/editor/plugins/control_editor_plugin.h
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2022-03-25 18:06:46 +0100
committerkobewi <kobewi4e@gmail.com>2022-08-22 18:05:10 +0200
commitece3df39386af85b069cbb67ae1893b4365f1bd3 (patch)
tree6d815d51c6e043470a08ad1eab993e4b288da8c9 /editor/plugins/control_editor_plugin.h
parent99548e521dc049b609347cd1fe38262d59d1b0d6 (diff)
Add per-scene UndoRedo
Diffstat (limited to 'editor/plugins/control_editor_plugin.h')
-rw-r--r--editor/plugins/control_editor_plugin.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/plugins/control_editor_plugin.h b/editor/plugins/control_editor_plugin.h
index f1b9190a0b..584d05aab0 100644
--- a/editor/plugins/control_editor_plugin.h
+++ b/editor/plugins/control_editor_plugin.h
@@ -44,6 +44,8 @@
#include "scene/gui/separator.h"
#include "scene/gui/texture_rect.h"
+class EditorUndoRedoManager;
+
// Inspector controls.
class ControlPositioningWarning : public MarginContainer {
GDCLASS(ControlPositioningWarning, MarginContainer);
@@ -203,7 +205,7 @@ public:
class ControlEditorToolbar : public HBoxContainer {
GDCLASS(ControlEditorToolbar, HBoxContainer);
- UndoRedo *undo_redo = nullptr;
+ Ref<EditorUndoRedoManager> undo_redo;
EditorSelection *editor_selection = nullptr;
ControlEditorPopupButton *anchors_button = nullptr;