diff options
author | kobewi <kobewi4e@gmail.com> | 2022-09-07 15:02:49 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-09-07 15:02:49 +0200 |
commit | 35cae718422c149e57d5f76fb5036b17d0cc7744 (patch) | |
tree | c940a53457c44b83f483831aa328365dd84c8ce1 /editor/plugins/tiles | |
parent | 019253512d75eb5e012772921ace6c092d8f5380 (diff) |
Fix tile source selection from picking
Diffstat (limited to 'editor/plugins/tiles')
-rw-r--r-- | editor/plugins/tiles/tile_map_editor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/tiles/tile_map_editor.cpp b/editor/plugins/tiles/tile_map_editor.cpp index 3f2710f858..08f418c1f7 100644 --- a/editor/plugins/tiles/tile_map_editor.cpp +++ b/editor/plugins/tiles/tile_map_editor.cpp @@ -1359,11 +1359,11 @@ void TileMapEditorTilesPlugin::_stop_dragging() { for (int i = 0; i < sources_list->get_item_count(); i++) { if (int(sources_list->get_item_metadata(i)) == picked_source) { sources_list->set_current(i); + TilesEditorPlugin::get_singleton()->set_sources_lists_current(i); break; } } sources_list->ensure_current_is_visible(); - TilesEditorPlugin::get_singleton()->set_sources_lists_current(picked_source); } Ref<TileMapPattern> new_selection_pattern = tile_map->get_pattern(tile_map_layer, coords_array); |