mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +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
|
@ -65,7 +65,7 @@ void TextEditor::_load_theme_settings() {
|
|||
String TextEditor::get_name() {
|
||||
String name;
|
||||
|
||||
if (text_file->get_path().find("local://") == -1 && text_file->get_path().find("::") == -1) {
|
||||
if (!text_file->is_built_in()) {
|
||||
name = text_file->get_path().get_file();
|
||||
if (is_unsaved()) {
|
||||
if (text_file->get_path().is_empty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue