mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix source picking with sort
This commit is contained in:
parent
cfc7c78732
commit
b727b81468
1 changed files with 6 additions and 1 deletions
|
|
@ -1347,7 +1347,12 @@ void TileMapEditorTilesPlugin::_stop_dragging() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (picked_source >= 0) {
|
if (picked_source >= 0) {
|
||||||
sources_list->set_current(picked_source);
|
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);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
sources_list->ensure_current_is_visible();
|
sources_list->ensure_current_is_visible();
|
||||||
TilesEditorPlugin::get_singleton()->set_sources_lists_current(picked_source);
|
TilesEditorPlugin::get_singleton()->set_sources_lists_current(picked_source);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue