diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-02-22 08:51:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 08:51:24 +0100 |
commit | 742d01b8887d5b4bdaf2e6d9931220cedff3a6a9 (patch) | |
tree | 0b356b47ce8b44d113830c12e350edd578b2ccb4 | |
parent | 9d82c82a63b15f3324e4ddb16c0f354db88c6c99 (diff) | |
parent | 095e2bcc26302a27a71b37b76348cb9231ab5862 (diff) |
Merge pull request #16888 from GodotExplorer/debugger-improvement-2
Fix builtin script cannot open from debug stacks
-rw-r--r-- | editor/plugins/script_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index c06531d975..261bece8f7 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -312,7 +312,7 @@ void ScriptEditor::_goto_script_line2(int p_line) { void ScriptEditor::_goto_script_line(REF p_script, int p_line) { Ref<Script> script = Object::cast_to<Script>(*p_script); - if (!script.is_null() && script->get_path().is_resource_file()) { + if (!script.is_null() && script->has_source_code()) { if (edit(p_script, p_line, 0)) { editor->push_item(p_script.ptr()); |