Prechádzať zdrojové kódy

Fix DAP breakpoints being cleared on closed scripts

(cherry picked from commit 760ff2e9339b95bcad1e4045c330c06e0ce9c98c)
Ricardo Subtil 1 rok pred
rodič
commit
c8fabac8c7
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      editor/plugins/script_editor_plugin.cpp

+ 1 - 1
editor/plugins/script_editor_plugin.cpp

@@ -536,7 +536,7 @@ void ScriptEditor::_set_breakpoint(Ref<RefCounted> p_script, int p_line, bool p_
 		}
 		state["breakpoints"] = breakpoints;
 		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);
 	}
 }