summaryrefslogtreecommitdiffstats
path: root/editor/plugins/tiles/tile_map_layer_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-07-02 13:57:29 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-07-02 13:57:29 +0200
commitbd5eab933259c373e0992d9f6b6155e8009cd746 (patch)
tree781d3c60d59039b6e2e3228ea31837161cd24507 /editor/plugins/tiles/tile_map_layer_editor.cpp
parent9c75b6cd847d4ca0a435851429173a75cf323ad3 (diff)
parentaf28d582158d9cd4335dc99e79d1ad8e6e227625 (diff)
downloadredot-engine-bd5eab933259c373e0992d9f6b6155e8009cd746.tar.gz
Merge pull request #93850 from KoBeWi/the_basic_right_to_erase
Fix RMB erasing of tiles
Diffstat (limited to 'editor/plugins/tiles/tile_map_layer_editor.cpp')
-rw-r--r--editor/plugins/tiles/tile_map_layer_editor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/tiles/tile_map_layer_editor.cpp b/editor/plugins/tiles/tile_map_layer_editor.cpp
index f6e4c6f951..d3afd25502 100644
--- a/editor/plugins/tiles/tile_map_layer_editor.cpp
+++ b/editor/plugins/tiles/tile_map_layer_editor.cpp
@@ -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();