Fix editor scene persistence and XC scene workflow

This commit is contained in:
2026-03-26 01:26:26 +08:00
parent 39edb0b497
commit 0651666d8c
35 changed files with 1958 additions and 256 deletions

View File

@@ -11,9 +11,11 @@ ConsolePanel::ConsolePanel() : Panel("Console") {
void ConsolePanel::Render() {
ImGui::Begin(m_name.c_str(), nullptr, ImGuiWindowFlags_None);
auto* sink = Debug::EditorConsoleSink::GetInstance();
if (ImGui::Button("Clear")) {
Debug::EditorConsoleSink::GetInstance()->Clear();
sink->Clear();
}
ImGui::SameLine();
@@ -52,7 +54,7 @@ void ConsolePanel::Render() {
ImGui::BeginChild("LogScroll", ImVec2(0, 0), false, ImGuiWindowFlags_HorizontalScrollbar);
const auto& logs = Debug::EditorConsoleSink::GetInstance()->GetLogs();
const auto logs = sink->GetLogs();
size_t logIndex = 0;
for (const auto& log : logs) {
bool shouldShow = false;
@@ -117,4 +119,4 @@ void ConsolePanel::Render() {
}
}
}
}