Make sure that selected tile source is remembered
This commit is contained in:
parent
97b8ad1af0
commit
a0824735a0
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue