mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Right-clicking with copied tiles cancels it
This commit is contained in:
parent
9d3875dde7
commit
61c2d397d6
1 changed files with 4 additions and 1 deletions
|
|
@ -598,7 +598,10 @@ bool TileMapEditorTilesPlugin::forward_canvas_gui_input(const Ref<InputEvent> &p
|
||||||
}
|
}
|
||||||
|
|
||||||
if (drag_type == DRAG_TYPE_CLIPBOARD_PASTE) {
|
if (drag_type == DRAG_TYPE_CLIPBOARD_PASTE) {
|
||||||
// Do nothing.
|
// Cancel tile pasting on right-click
|
||||||
|
if (mb->get_button_index() == MouseButton::RIGHT) {
|
||||||
|
drag_type = DRAG_TYPE_NONE;
|
||||||
|
}
|
||||||
} else if (tool_buttons_group->get_pressed_button() == select_tool_button) {
|
} else if (tool_buttons_group->get_pressed_button() == select_tool_button) {
|
||||||
drag_start_mouse_pos = mpos;
|
drag_start_mouse_pos = mpos;
|
||||||
if (tile_map_selection.has(tile_map->world_to_map(drag_start_mouse_pos)) && !mb->is_shift_pressed()) {
|
if (tile_map_selection.has(tile_map->world_to_map(drag_start_mouse_pos)) && !mb->is_shift_pressed()) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue