From 58b2d669a0be9877205ceab56e454a214617b7fc Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Tue, 22 Dec 2020 17:27:06 -0300 Subject: [PATCH] Fix filename disambiguation on scripts in certain occasions (cherry picked from commit ed488b72a64b14558b8367841a67fefbaa78ecf2) --- editor/plugins/script_editor_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }