1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Fix RMB erasing of tiles

This commit is contained in:
kobewi
2024-07-02 08:45:05 +02:00
parent 9425535602
commit af28d58215

View File

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