diff options
| author | geequlim | 2018-02-21 21:10:32 +0800 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-03-28 22:12:31 +0200 |
| commit | 5eebe510145c5073a748388ea190f8185c76c401 (patch) | |
| tree | a642191036e397afe316b1a3329bfec3d1dbe6e1 /editor/plugins/script_editor_plugin.cpp | |
| parent | 9febb6f74701688387ce4e89839d11f0772b424b (diff) | |
| download | godot-5eebe510145c5073a748388ea190f8185c76c401.tar.gz godot-5eebe510145c5073a748388ea190f8185c76c401.tar.zst godot-5eebe510145c5073a748388ea190f8185c76c401.zip | |
Fix builtin script cannot open from debug stacks
(cherry picked from commit 095e2bcc26302a27a71b37b76348cb9231ab5862)
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
| -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 db734ffd1..3762a3519 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()); |
