mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 02:43:29 +00:00
Check for double-colon on open recent script.
This commit is contained in:
parent
ffe158ae85
commit
1cdc04c9c4
1 changed files with 7 additions and 0 deletions
|
|
@ -504,6 +504,13 @@ void ScriptEditor::_open_recent_script(int p_idx) {
|
|||
return;
|
||||
}
|
||||
// if it's a path then its most likely a deleted file not help
|
||||
} else if (path.find("::") != -1) {
|
||||
// built-in script
|
||||
Ref<Script> script = ResourceLoader::load(path);
|
||||
if (script.is_valid()) {
|
||||
edit(script, true);
|
||||
return;
|
||||
}
|
||||
} else if (!path.is_resource_file()) {
|
||||
_help_class_open(path);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue