summaryrefslogtreecommitdiffstats
path: root/editor/plugins/tiles
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-06-29 19:54:30 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-06-29 19:54:30 +0200
commit4ab8fb809396fa38ba929fec97cfcb7193f1c44d (patch)
treead876b692da8d522e6a3a6eb7984ac27e8caaed6 /editor/plugins/tiles
parent2f7973f04bb4fbbad256d5427154d5d3f34de59e (diff)
parent92b0375785e1b4defa8a0a00b509f5c72264e15b (diff)
downloadredot-engine-4ab8fb809396fa38ba929fec97cfcb7193f1c44d.tar.gz
Merge pull request #93747 from KoBeWi/layer_of_bugs
Fix some TileMapLayer editing problems
Diffstat (limited to 'editor/plugins/tiles')
-rw-r--r--editor/plugins/tiles/tile_map_layer_editor.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/editor/plugins/tiles/tile_map_layer_editor.cpp b/editor/plugins/tiles/tile_map_layer_editor.cpp
index 41b8b88f73..f6e4c6f951 100644
--- a/editor/plugins/tiles/tile_map_layer_editor.cpp
+++ b/editor/plugins/tiles/tile_map_layer_editor.cpp
@@ -763,9 +763,13 @@ bool TileMapLayerEditorTilesPlugin::forward_canvas_gui_input(const Ref<InputEven
}
} else {
- // Released
- _stop_dragging();
+ // Released.
drag_erasing = false;
+ if (drag_type == DRAG_TYPE_NONE) {
+ return false;
+ } else {
+ _stop_dragging();
+ }
}
CanvasItemEditor::get_singleton()->update_viewport();