mirror of
https://github.com/godotengine/godot.git
synced 2025-10-22 09:23:40 +00:00
Add is_built_in() method to Resource
This commit is contained in:
parent
78931aa040
commit
e393c2a734
12 changed files with 28 additions and 34 deletions
|
@ -375,7 +375,7 @@ void ScriptTextEditor::ensure_focus() {
|
|||
String ScriptTextEditor::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()) {
|
||||
|
@ -658,7 +658,7 @@ void ScriptEditor::_update_modified_scripts_for_external_editor(Ref<Script> p_fo
|
|||
continue;
|
||||
}
|
||||
|
||||
if (script->get_path() == "" || script->get_path().find("local://") != -1 || script->get_path().find("::") != -1) {
|
||||
if (script->is_built_in()) {
|
||||
continue; //internal script, who cares, though weird
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue