Merge pull request #44598 from YeldhamDev/file_disambiguation_fix

Fix filename disambiguation on scripts in certain occasions
This commit is contained in:
Rémi Verschelde 2020-12-22 23:38:26 +01:00 committed by GitHub
commit a7d8fddf31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1954,7 +1954,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.append(sedata[j].name.replace("(*)", ""));
disambiguated_script_names.append(sedata[j].name.replace("(*)", "").get_file());
full_script_paths.append(sedata[j].tooltip);
}