From bfaf5a6b756532dd9b7a3e53a2315a9241f72703 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 9 Mar 2024 08:17:36 +0100 Subject: [PATCH] Don't free the Editor's UndoRedo. --- modules/layered_tile_map/editor/layered_tile_data_editors.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/layered_tile_map/editor/layered_tile_data_editors.cpp b/modules/layered_tile_map/editor/layered_tile_data_editors.cpp index 0e1d28fa6..32ea70deb 100644 --- a/modules/layered_tile_map/editor/layered_tile_data_editors.cpp +++ b/modules/layered_tile_map/editor/layered_tile_data_editors.cpp @@ -674,10 +674,6 @@ void GenericTilePolygonEditor::_base_control_gui_input(Ref p_event) } base_control->update(); - - if (!use_undo_redo) { - memdelete(undo_redo); - } } void GenericTilePolygonEditor::_set_snap_option(int p_index) {