You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Add is_built_in() method to Resource
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user