Merge pull request #88912 from AThousandShips/tile_drag_fix
[TileSet] Fix crash when deleting dragged polygon point
This commit is contained in:
commit
8f3e2a6113
|
@ -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->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();
|
||||||
|
|
Loading…
Reference in New Issue