From 6abaf4d0eb4cc6693caa36bb3584df379a05a4fe Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Thu, 23 Jul 2020 20:51:17 +0300 Subject: [PATCH] Skip internal scripts for breakpoints without printing an error This removes: ``` ERROR: get_breakpoints: Condition ' base.begins_with("local://") ``` while running a project with blank scripts caused by deleting or moving, or built-in scripts which are not yet saved within a scene on running a project. (cherry picked from commit 1c70a33d9c4a6641f63b067134a357b102640d66) --- editor/plugins/script_editor_plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index 56e1b9d2ee6..b2ebad5ea50 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -1559,7 +1559,9 @@ void ScriptEditor::get_breakpoints(List *p_breakpoints) { List bpoints; se->get_breakpoints(&bpoints); String base = script->get_path(); - ERR_CONTINUE(base.begins_with("local://") || base == ""); + if (base.begins_with("local://") || base == "") { + continue; + } for (List::Element *E = bpoints.front(); E; E = E->next()) {