1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

Fix filename disambiguation on scripts in certain occasions

(cherry picked from commit ed488b72a6)
This commit is contained in:
Michael Alexsander
2020-12-22 17:27:06 -03:00
committed by Rémi Verschelde
parent d0abf5b0f5
commit 58b2d669a0

View File

@@ -1907,7 +1907,7 @@ void ScriptEditor::_update_script_names() {
Vector<String> disambiguated_script_names;
Vector<String> 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);
}