Merge pull request #94356 from KoBeWi/metas_everywhere

Make sure that selected tile source is remembered
This commit is contained in:
Rémi Verschelde 2024-07-17 15:45:04 +02:00
commit c4806ed2a9
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -163,7 +163,10 @@ void TileMapLayerEditorTilesPlugin::_update_tile_set_sources_list() {
int old_source = -1;
if (old_current > -1) {
old_source = sources_list->get_item_metadata(old_current);
} else {
old_source = sources_list->get_meta("old_source", -1);
}
sources_list->set_meta("old_source", old_source);
sources_list->clear();
TileMapLayer *edited_layer = _get_edited_layer();