diff options
author | kobewi <kobewi4e@gmail.com> | 2024-06-22 18:42:48 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2024-06-22 18:42:48 +0200 |
commit | 230a4cb63f713d22a4cde5c7acf9dbf58e7b17a6 (patch) | |
tree | 169d697cedde205e399825629b5e9811a6013e15 | |
parent | 04bf7d4cade645a5923cc80d87ac1c6109e2cdfe (diff) | |
download | redot-engine-230a4cb63f713d22a4cde5c7acf9dbf58e7b17a6.tar.gz |
Store TileMapLayer selection in scene's history
-rw-r--r-- | editor/plugins/tiles/tile_map_layer_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/tiles/tile_map_layer_editor.cpp b/editor/plugins/tiles/tile_map_layer_editor.cpp index 9931ce5820..41b8b88f73 100644 --- a/editor/plugins/tiles/tile_map_layer_editor.cpp +++ b/editor/plugins/tiles/tile_map_layer_editor.cpp @@ -1295,7 +1295,7 @@ void TileMapLayerEditorTilesPlugin::_stop_dragging() { EditorUndoRedoManager *undo_redo = EditorUndoRedoManager::get_singleton(); switch (drag_type) { case DRAG_TYPE_SELECT: { - undo_redo->create_action(TTR("Change selection")); + undo_redo->create_action_for_history(TTR("Change selection"), EditorNode::get_editor_data().get_current_edited_scene_history_id()); undo_redo->add_undo_method(this, "_set_tile_map_selection", _get_tile_map_selection()); if (!Input::get_singleton()->is_key_pressed(Key::SHIFT) && !Input::get_singleton()->is_key_pressed(Key::CMD_OR_CTRL)) { |