Merge pull request #93475 from KoBeWi/unified_timeline

Store TileMapLayer selection in scene's history
This commit is contained in:
Rémi Verschelde 2024-06-24 11:14:25 +02:00
commit 1abca34813
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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)) {