Przeglądaj źródła

Merge pull request #84898 from rsubtil/fix_dap_breakpoints_closed_scripts

Fix DAP breakpoints being cleared on closed scripts
Yuri Sizov 1 rok temu
rodzic
commit
5c848174a3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      editor/plugins/script_editor_plugin.cpp

+ 1 - 1
editor/plugins/script_editor_plugin.cpp

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