mirror of
https://github.com/godotengine/godot.git
synced 2025-10-29 04:34:39 +00:00
Fix DAP breakpoints being cleared on closed scripts
This commit is contained in:
parent
6afd320984
commit
760ff2e933
1 changed files with 1 additions and 1 deletions
|
|
@ -544,7 +544,7 @@ void ScriptEditor::_set_breakpoint(Ref<RefCounted> p_script, int p_line, bool p_
|
||||||
}
|
}
|
||||||
state["breakpoints"] = breakpoints;
|
state["breakpoints"] = breakpoints;
|
||||||
script_editor_cache->set_value(scr->get_path(), "state", state);
|
script_editor_cache->set_value(scr->get_path(), "state", state);
|
||||||
EditorDebuggerNode::get_singleton()->set_breakpoint(scr->get_path(), p_line + 1, false);
|
EditorDebuggerNode::get_singleton()->set_breakpoint(scr->get_path(), p_line + 1, p_enabled);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue