diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-10 19:06:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-10 19:06:41 +0200 |
commit | 772b398ad8bce5013b5ac4d7a4a2c4ea475d084f (patch) | |
tree | 5761fd9d13ff52e4c7a88c0729cc89c4f303c866 /editor | |
parent | 497853c383677c130f818d4988dcf52beb4e0ece (diff) | |
parent | 1cdc04c9c40dae1bd5bd016958cda5250e10c76f (diff) |
Merge pull request #21886 from RyanStein/bugfix-15509
Check for double-colon on open recent script.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 70f1789a86..f90863c735 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -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; |