mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
Add main_gutter (breakpoints, bookmarks, execution lines) to code_edit
This commit is contained in:
parent
907f9f2a84
commit
4d7df24d46
19 changed files with 403 additions and 377 deletions
|
|
@ -1585,15 +1585,14 @@ void ScriptEditor::get_breakpoints(List<String> *p_breakpoints) {
|
|||
continue;
|
||||
}
|
||||
|
||||
List<int> bpoints;
|
||||
se->get_breakpoints(&bpoints);
|
||||
String base = script->get_path();
|
||||
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));
|
||||
Array bpoints = se->get_breakpoints();
|
||||
for (int j = 0; j < bpoints.size(); j++) {
|
||||
p_breakpoints->push_back(base + ":" + itos((int)bpoints[j] + 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue