diff options
| author | Samuele Zolfanelli | 2018-05-16 15:04:37 +0200 |
|---|---|---|
| committer | Samuele Zolfanelli | 2018-05-16 15:23:56 +0200 |
| commit | 375c94510f529af4513e552a9c9610d22fddad8a (patch) | |
| tree | b3dd25e6397c5ef0cfc76b67ca33ae213202b367 | |
| parent | dfd1331690fab7e634e2e18fd7269bab8f759b3a (diff) | |
| download | godot-375c94510f529af4513e552a9c9610d22fddad8a.tar.gz godot-375c94510f529af4513e552a9c9610d22fddad8a.tar.zst godot-375c94510f529af4513e552a9c9610d22fddad8a.zip | |
| -rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index ac250f085..c0f91455f 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1549,9 +1549,10 @@ void ScriptEditor::_update_script_names() { ScriptEditorBase *se = Object::cast_to<ScriptEditorBase>(tab_container->get_child(i)); if (se) { - String name = se->get_name(); Ref<Texture> icon = se->get_icon(); String path = se->get_edited_script()->get_path(); + bool built_in = !path.is_resource_file(); + String name = built_in ? path.get_file() : se->get_name(); _ScriptEditorItemData sd; sd.icon = icon; |
