[TileSet] Fix crash when deleting dragged polygon point

(cherry picked from commit 0ba7463803)
This commit is contained in:
A Thousand Ships 2024-02-27 15:16:27 +01:00 committed by Rémi Verschelde
parent aec956d7c6
commit 59b0a8da4f
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -644,6 +644,7 @@ void GenericTilePolygonEditor::_base_control_gui_input(Ref<InputEvent> p_event)
undo_redo->add_undo_method(base_control, "queue_redraw"); undo_redo->add_undo_method(base_control, "queue_redraw");
undo_redo->commit_action(false); undo_redo->commit_action(false);
emit_signal(SNAME("polygons_changed")); emit_signal(SNAME("polygons_changed"));
drag_type = DRAG_TYPE_NONE;
} else { } else {
drag_type = DRAG_TYPE_PAN; drag_type = DRAG_TYPE_PAN;
drag_last_pos = mb->get_position(); drag_last_pos = mb->get_position();