summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();