summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-11-04 14:18:27 +0100
committerGitHub <noreply@github.com>2021-11-04 14:18:27 +0100
commitc4f29b078ab18325dac3558bce9111f6a6870d90 (patch)
treed5df3380b1c5bf8180e6e620df7300135abb0214 /modules
parenta302006f86f855c7f2a5fec97f092f9d7f1e8c6c (diff)
parente393c2a7348d96587e15af17c72ebeff719d4be3 (diff)
Merge pull request #50352 from KoBeWi/internal_stuff
Diffstat (limited to 'modules')
-rw-r--r--modules/visual_script/visual_script_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/visual_script/visual_script_editor.cpp b/modules/visual_script/visual_script_editor.cpp
index a40804cb2e..49ae79e22a 100644
--- a/modules/visual_script/visual_script_editor.cpp
+++ b/modules/visual_script/visual_script_editor.cpp
@@ -2582,7 +2582,7 @@ void VisualScriptEditor::reload_text() {
String VisualScriptEditor::get_name() {
String name;
- if (script->get_path().find("local://") == -1 && script->get_path().find("::") == -1) {
+ if (!script->is_built_in()) {
name = script->get_path().get_file();
if (is_unsaved()) {
if (script->get_path().is_empty()) {