Merge pull request #93850 from KoBeWi/the_basic_right_to_erase

Fix RMB erasing of tiles
This commit is contained in:
Rémi Verschelde 2024-07-02 13:57:29 +02:00
commit bd5eab9332
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 2 additions and 1 deletions

View File

@ -764,12 +764,13 @@ bool TileMapLayerEditorTilesPlugin::forward_canvas_gui_input(const Ref<InputEven
} else {
// Released.
drag_erasing = false;
if (drag_type == DRAG_TYPE_NONE) {
drag_erasing = false;
return false;
} else {
_stop_dragging();
}
drag_erasing = false;
}
CanvasItemEditor::get_singleton()->update_viewport();