From 375c94510f529af4513e552a9c9610d22fddad8a Mon Sep 17 00:00:00 2001 From: Samuele Zolfanelli Date: Wed, 16 May 2018 15:04:37 +0200 Subject: [PATCH] Changed the name displayed in the Script tab for built-in script with a more descriptive one --- editor/plugins/script_editor_plugin.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index ac250f085d8..c0f91455fa2 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(tab_container->get_child(i)); if (se) { - String name = se->get_name(); Ref 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;