From e393c2a7348d96587e15af17c72ebeff719d4be3 Mon Sep 17 00:00:00 2001 From: kobewi Date: Sat, 10 Jul 2021 21:17:41 +0200 Subject: Add is_built_in() method to Resource --- modules/visual_script/visual_script_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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()) { -- cgit v1.2.3