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 1c70a33d9c
)
This commit is contained in:
parent
993a421333
commit
6abaf4d0eb
|
@ -1559,7 +1559,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()) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue