Remove Node.get_position_in_parent()

This commit is contained in:
Tomasz Chabora 2020-04-06 01:06:10 +02:00
parent 4a0e99f197
commit c1023157eb
11 changed files with 18 additions and 32 deletions

View file

@ -2196,7 +2196,7 @@ void EditorPropertyResource::_menu_option(int p_which) {
file_system_dock->navigate_to_path(res->get_path());
// Ensure that the FileSystem dock is visible.
TabContainer *tab_container = (TabContainer *)file_system_dock->get_parent_control();
tab_container->set_current_tab(file_system_dock->get_position_in_parent());
tab_container->set_current_tab(file_system_dock->get_index());
} break;
default: {