Fix expand in GenericTilePolygonEditor.

This commit is contained in:
Relintai 2024-03-09 08:35:49 +01:00
parent d630dec41a
commit 5359053613

View File

@ -820,7 +820,7 @@ void LayeredTileSetEditor::remove_expanded_editor() {
if (original_parent) { if (original_parent) {
expanded_editor->remove_meta("reparented"); expanded_editor->remove_meta("reparented");
expanded_editor->get_parent()->remove_child(expanded_editor); expanded_editor->get_parent()->remove_child(expanded_editor);
expanded_area->add_child(original_parent); original_parent->add_child(expanded_editor);
} else { } else {
expanded_editor->queue_delete(); expanded_editor->queue_delete();
} }