Merge pull request #40640 from Xrayez/base-begins-with-local-err

Skip internal scripts for breakpoints without printing an error
This commit is contained in:
Rémi Verschelde 2020-07-25 13:00:02 +02:00 committed by GitHub
commit 5f75cec59e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1577,7 +1577,9 @@ void ScriptEditor::get_breakpoints(List<String> *p_breakpoints) {
List<int> 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<int>::Element *E = bpoints.front(); E; E = E->next()) {
p_breakpoints->push_back(base + ":" + itos(E->get() + 1));