From 5359053613f252539afd3a3cacd18a16636234f1 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 9 Mar 2024 08:35:49 +0100 Subject: [PATCH] Fix expand in GenericTilePolygonEditor. --- modules/layered_tile_map/editor/layered_tile_set_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/layered_tile_map/editor/layered_tile_set_editor.cpp b/modules/layered_tile_map/editor/layered_tile_set_editor.cpp index 3b7e78d13..469df805e 100644 --- a/modules/layered_tile_map/editor/layered_tile_set_editor.cpp +++ b/modules/layered_tile_map/editor/layered_tile_set_editor.cpp @@ -820,7 +820,7 @@ void LayeredTileSetEditor::remove_expanded_editor() { if (original_parent) { expanded_editor->remove_meta("reparented"); expanded_editor->get_parent()->remove_child(expanded_editor); - expanded_area->add_child(original_parent); + original_parent->add_child(expanded_editor); } else { expanded_editor->queue_delete(); }