From 59b0a8da4f30e2a2d34495c15e6d47cffb1d62a2 Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Tue, 27 Feb 2024 15:16:27 +0100 Subject: [PATCH] [TileSet] Fix crash when deleting dragged polygon point (cherry picked from commit 0ba746380347cc43336ecd077788db24fe95146b) --- editor/plugins/tiles/tile_data_editors.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/plugins/tiles/tile_data_editors.cpp b/editor/plugins/tiles/tile_data_editors.cpp index 7767831ea3f..292be4c5aa4 100644 --- a/editor/plugins/tiles/tile_data_editors.cpp +++ b/editor/plugins/tiles/tile_data_editors.cpp @@ -644,6 +644,7 @@ void GenericTilePolygonEditor::_base_control_gui_input(Ref p_event) undo_redo->add_undo_method(base_control, "queue_redraw"); undo_redo->commit_action(false); emit_signal(SNAME("polygons_changed")); + drag_type = DRAG_TYPE_NONE; } else { drag_type = DRAG_TYPE_PAN; drag_last_pos = mb->get_position();