mirror of
https://github.com/godotengine/godot-visual-script.git
synced 2026-01-04 18:10:07 +03: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 VisualScriptEditor::get_name() {
|
||||||
String 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();
|
name = script->get_path().get_file();
|
||||||
if (is_unsaved()) {
|
if (is_unsaved()) {
|
||||||
if (script->get_path().is_empty()) {
|
if (script->get_path().is_empty()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user