diff options
author | Ryan Stein <ryan.stein@gmx.com> | 2018-09-08 22:26:05 -0400 |
---|---|---|
committer | Ryan Stein <ryan.stein@gmx.com> | 2018-09-08 22:26:05 -0400 |
commit | 1cdc04c9c40dae1bd5bd016958cda5250e10c76f (patch) | |
tree | 9382f2593a28612323224b3d4d3a57dc67205406 /editor | |
parent | ffe158ae85b970cbc05b4da1047102dc19dc8297 (diff) |
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; |