Skip to content

Commit

Permalink
Merge pull request #94356 from KoBeWi/metas_everywhere
Browse files Browse the repository at this point in the history
Make sure that selected tile source is remembered
  • Loading branch information
akien-mga committed Jul 17, 2024
2 parents e7b6245 + a082473 commit c4806ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editor/plugins/tiles/tile_map_layer_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c4806ed

Please sign in to comment.