chore: snapshot editor work and restore tests
Key points:\n- restore the tests tree removed by bc47e6e\n- capture current editor workspace, scene, and docs reshuffle changes\n- keep local cloud.nvdb resources ignored from this commit
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "Bootstrap/EditorResources.h"
|
||||
#include "System/SystemInteractionService.h"
|
||||
#include "Composition/EditorContext.h"
|
||||
#include "Windowing/System/EditorWindowSystem.h"
|
||||
#include "Platform/Win32/Windowing/EditorWindowManager.h"
|
||||
#include "Platform/Win32/Windowing/EditorWindow.h"
|
||||
#include "Platform/Win32/System/Win32SystemInteractionHost.h"
|
||||
@@ -115,6 +116,8 @@ bool Application::Initialize(HINSTANCE hInstance, int nCmdShow) {
|
||||
|
||||
m_systemInteractionHost = std::make_unique<Host::Win32SystemInteractionHost>();
|
||||
m_editorContext->SetSystemInteractionHost(m_systemInteractionHost.get());
|
||||
m_windowSystem = std::make_unique<App::EditorWindowSystem>(
|
||||
m_editorContext->GetShellAsset().panelRegistry);
|
||||
|
||||
App::EditorWindowHostConfig hostConfig = {};
|
||||
hostConfig.hInstance = m_hInstance;
|
||||
@@ -125,7 +128,8 @@ bool Application::Initialize(HINSTANCE hInstance, int nCmdShow) {
|
||||
m_windowManager = std::make_unique<App::EditorWindowManager>(
|
||||
hostConfig,
|
||||
m_repoRoot,
|
||||
*m_editorContext);
|
||||
*m_editorContext,
|
||||
*m_windowSystem);
|
||||
|
||||
m_editorContext->SetExitRequestHandler([this]() {
|
||||
if (m_windowManager == nullptr) {
|
||||
@@ -148,8 +152,20 @@ bool Application::Initialize(HINSTANCE hInstance, int nCmdShow) {
|
||||
createParams.primary = true;
|
||||
createParams.autoCaptureOnStartup =
|
||||
App::IsEnvironmentFlagEnabled("XCUI_AUTO_CAPTURE_ON_STARTUP");
|
||||
UIEditorWorkspaceController primaryWorkspaceController =
|
||||
m_editorContext->BuildWorkspaceController();
|
||||
std::string windowSystemError = {};
|
||||
if (!m_windowSystem->BootstrapPrimaryWindow(
|
||||
createParams.windowId,
|
||||
primaryWorkspaceController,
|
||||
windowSystemError)) {
|
||||
AppendUIEditorRuntimeTrace(
|
||||
"app",
|
||||
"window system bootstrap failed: " + windowSystemError);
|
||||
return false;
|
||||
}
|
||||
if (m_windowManager->CreateWorkspaceWindow(
|
||||
m_editorContext->BuildWorkspaceController(),
|
||||
std::move(primaryWorkspaceController),
|
||||
createParams) == nullptr) {
|
||||
AppendUIEditorRuntimeTrace("app", "primary window creation failed");
|
||||
return false;
|
||||
@@ -166,6 +182,7 @@ void Application::Shutdown() {
|
||||
m_windowManager->Shutdown();
|
||||
m_windowManager.reset();
|
||||
}
|
||||
m_windowSystem.reset();
|
||||
|
||||
if (m_editorContext != nullptr) {
|
||||
m_editorContext->SetSystemInteractionHost(nullptr);
|
||||
|
||||
Reference in New Issue
Block a user