Fix editor scene persistence and XC scene workflow
This commit is contained in:
@@ -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() {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user