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
No known key found for this signature in database
GPG key ID: C3336907360768E1

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);
}