Fix builtin script cannot open from debug stacks

(cherry picked from commit 095e2bcc26)
This commit is contained in:
geequlim 2018-02-21 21:10:32 +08:00 committed by Hein-Pieter van Braam
parent 9febb6f747
commit 5eebe51014
1 changed files with 1 additions and 1 deletions

View File

@ -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());