Make sure that selected tile source is remembered

This commit is contained in:
kobewi 2024-07-14 19:07:17 +02:00
parent 97b8ad1af0
commit a0824735a0
1 changed files with 3 additions and 0 deletions

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();