Fix DAP breakpoints being cleared on closed scripts

(cherry picked from commit 760ff2e933)
This commit is contained in:
Ricardo Subtil 2023-11-14 16:51:38 +00:00 committed by Yuri Sizov
parent c9924b11a4
commit c8fabac8c7
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,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);
} }
} }