Skip to content

Commit

Permalink
Merge pull request #93475 from KoBeWi/unified_timeline
Browse files Browse the repository at this point in the history
Store TileMapLayer selection in scene's history
  • Loading branch information
akien-mga committed Jun 24, 2024
2 parents c48c085 + 230a4cb commit 1abca34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/tiles/tile_map_layer_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 1abca34

Please sign in to comment.