Преглед изворни кода

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

Skip internal scripts for breakpoints without printing an error
Rémi Verschelde пре 5 година
родитељ
комит
5f75cec59e
1 измењених фајлова са 3 додато и 1 уклоњено
  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));