Add per-scene UndoRedo
This commit is contained in:
parent
99548e521d
commit
ece3df3938
122 changed files with 1498 additions and 642 deletions
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/editor_undo_redo_manager.h"
|
||||
#include "editor/scene_tree_dock.h"
|
||||
#include "editor/scene_tree_editor.h"
|
||||
#include "scene/gui/box_container.h"
|
||||
|
|
@ -397,6 +398,10 @@ void GroupDialog::_notification(int p_what) {
|
|||
}
|
||||
}
|
||||
|
||||
void GroupDialog::set_undo_redo(Ref<EditorUndoRedoManager> p_undo_redo) {
|
||||
undo_redo = p_undo_redo;
|
||||
}
|
||||
|
||||
void GroupDialog::edit() {
|
||||
popup_centered();
|
||||
|
||||
|
|
@ -696,6 +701,10 @@ void GroupsEditor::update_tree() {
|
|||
}
|
||||
}
|
||||
|
||||
void GroupsEditor::set_undo_redo(Ref<EditorUndoRedoManager> p_undo_redo) {
|
||||
undo_redo = p_undo_redo;
|
||||
}
|
||||
|
||||
void GroupsEditor::set_current(Node *p_node) {
|
||||
node = p_node;
|
||||
update_tree();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue