diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index b6615454cf7..fd27d8027a7 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1907,7 +1907,7 @@ void ScriptEditor::_update_script_names() { Vector disambiguated_script_names; Vector full_script_paths; for (int j = 0; j < sedata.size(); j++) { - disambiguated_script_names.push_back(sedata[j].name.replace("(*)", "")); + disambiguated_script_names.push_back(sedata[j].name.replace("(*)", "").get_file()); full_script_paths.push_back(sedata[j].tooltip); }