Skip to content

Commit

Permalink
Merge pull request #88912 from AThousandShips/tile_drag_fix
Browse files Browse the repository at this point in the history
[TileSet] Fix crash when deleting dragged polygon point
  • Loading branch information
akien-mga committed Feb 27, 2024
2 parents 21e3b21 + 0ba7463 commit 8f3e2a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/plugins/tiles/tile_data_editors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ void GenericTilePolygonEditor::_base_control_gui_input(Ref<InputEvent> 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();
Expand Down

0 comments on commit 8f3e2a6

Please sign in to comment.