summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorMichael Alexsander <michaelalexsander@protonmail.com>2020-12-22 17:27:06 -0300
committerMichael Alexsander <michaelalexsander@protonmail.com>2020-12-22 17:27:06 -0300
commited488b72a64b14558b8367841a67fefbaa78ecf2 (patch)
treecbbf0fca89b918fc010c9c0a2f3b2a7c37908867 /editor/plugins
parent30d469a5e0f70860f3c4ce4508d6564ca389320b (diff)
Fix filename disambiguation on scripts in certain occasions
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/script_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index e0a6fe16f7..7607ab482c 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -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);
}