mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Add per-scene UndoRedo
This commit is contained in:
parent
99548e521d
commit
ece3df3938
122 changed files with 1498 additions and 642 deletions
|
|
@ -35,6 +35,7 @@
|
|||
#include "editor/editor_node.h"
|
||||
#include "editor/editor_resource_preview.h"
|
||||
#include "editor/editor_scale.h"
|
||||
#include "editor/editor_undo_redo_manager.h"
|
||||
#include "editor/plugins/canvas_item_editor_plugin.h"
|
||||
|
||||
#include "scene/2d/camera_2d.h"
|
||||
|
|
@ -3697,8 +3698,8 @@ void TileMapEditor::_update_layers_selection() {
|
|||
}
|
||||
|
||||
void TileMapEditor::_move_tile_map_array_element(Object *p_undo_redo, Object *p_edited, String p_array_prefix, int p_from_index, int p_to_pos) {
|
||||
UndoRedo *undo_redo = Object::cast_to<UndoRedo>(p_undo_redo);
|
||||
ERR_FAIL_COND(!undo_redo);
|
||||
Ref<EditorUndoRedoManager> undo_redo = Object::cast_to<EditorUndoRedoManager>(p_undo_redo);
|
||||
ERR_FAIL_COND(undo_redo.is_null());
|
||||
|
||||
TileMap *tile_map = Object::cast_to<TileMap>(p_edited);
|
||||
if (!tile_map) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue