summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGilles Roudière <gilles.roudiere@gmail.com>2023-09-19 15:12:03 +0200
committerGilles Roudière <gilles.roudiere@gmail.com>2023-09-19 15:12:03 +0200
commit83f1e31483cb2ae52d5d3f4490a6cb08dab64d9c (patch)
tree12242d24194f754b35e63975214bcbca58322a70
parent787259441abb7aa92a382ccf48591a70136f25f0 (diff)
downloadredot-engine-83f1e31483cb2ae52d5d3f4490a6cb08dab64d9c.tar.gz
Fix TileMap editor so that pressing control deselects cells correctly
-rw-r--r--editor/plugins/tiles/tile_map_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/tiles/tile_map_editor.cpp b/editor/plugins/tiles/tile_map_editor.cpp
index 21e532b22a..21e89ef1d8 100644
--- a/editor/plugins/tiles/tile_map_editor.cpp
+++ b/editor/plugins/tiles/tile_map_editor.cpp
@@ -675,7 +675,7 @@ bool TileMapEditorTilesPlugin::forward_canvas_gui_input(const Ref<InputEvent> &p
}
} else if (tool_buttons_group->get_pressed_button() == select_tool_button) {
drag_start_mouse_pos = mpos;
- if (tile_map_selection.has(tile_map->local_to_map(drag_start_mouse_pos)) && !mb->is_shift_pressed()) {
+ if (tile_map_selection.has(tile_map->local_to_map(drag_start_mouse_pos)) && !mb->is_shift_pressed() && !mb->is_command_or_control_pressed()) {
// Move the selection
_update_selection_pattern_from_tilemap_selection(); // Make sure the pattern is up to date before moving.
drag_type = DRAG_TYPE_MOVE;