Explorar o código

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.
Andrii Doroshenko (Xrayez) %!s(int64=5) %!d(string=hai) anos
pai
achega
1c70a33d9c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      editor/plugins/script_editor_plugin.cpp

+ 3 - 1
editor/plugins/script_editor_plugin.cpp

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