mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
[TileSet] Fix crash when deleting dragged polygon point
This commit is contained in:
parent
a586e860e5
commit
0ba7463803
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user