瀏覽代碼

Fix filename disambiguation on scripts in certain occasions

(cherry picked from commit ed488b72a64b14558b8367841a67fefbaa78ecf2)
Michael Alexsander 4 年之前
父節點
當前提交
58b2d669a0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/plugins/script_editor_plugin.cpp

+ 1 - 1
editor/plugins/script_editor_plugin.cpp

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