diff options
author | kobewi <kobewi4e@gmail.com> | 2021-07-10 21:17:41 +0200 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2021-11-04 12:45:58 +0100 |
commit | e393c2a7348d96587e15af17c72ebeff719d4be3 (patch) | |
tree | a31a5913139f9e56d3324452dc908ab96a4f7967 /modules/visual_script | |
parent | 78931aa040bb0d0586345f95cc982605c0720ba1 (diff) |
Add is_built_in() method to Resource
Diffstat (limited to 'modules/visual_script')
-rw-r--r-- | modules/visual_script/visual_script_editor.cpp | 2 |
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()) { |