diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-31 01:14:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-31 01:14:57 +0200 |
commit | 66d1bb84c380910a50e3176124da5c8821e93097 (patch) | |
tree | 7abfab99ffe32cb285adb1d71119baf410927f3b | |
parent | a32f84dda9b114b710622daff2c4e52474fd3477 (diff) | |
parent | c9fe780239e7c2832cd73a6179a6e612f9bfca50 (diff) |
Merge pull request #63697 from YeldhamDev/script_elements_fix
Fix elements not being shown on first selected script/doc
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 03de010f28..e2f5d459e0 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -2154,8 +2154,11 @@ void ScriptEditor::_update_script_names() { } if (tab_container->get_current_tab() == sedata_filtered[i].index) { script_list->select(index); + _script_selected(index); + script_name_label->set_text(sedata_filtered[i].name); script_icon->set_texture(sedata_filtered[i].icon); + ScriptEditorBase *se = _get_current_editor(); if (se) { se->enable_editor(); |