refactor(editor): isolate scene backend boundary

This commit is contained in:
2026-04-28 16:32:25 +08:00
parent 6c4663ed21
commit 23aab98a09
15 changed files with 481 additions and 253 deletions

View File

@@ -1,5 +1,6 @@
#include "EditorContext.h"
#include "EditorShellAssetBuilder.h"
#include "Scene/EngineEditorSceneBackend.h"
#include "Scene/EditorSceneRuntime.h"
#include "Panels/EditorPanelIds.h"
#include "WorkspaceEventSync.h"
@@ -75,7 +76,7 @@ bool EditorContext::Initialize(const EditorRuntimePaths& runtimePaths) {
m_projectRuntime.Initialize(runtimePaths.projectRoot);
AppendUIEditorRuntimeTrace("startup", "EditorProjectRuntime::Initialize end");
m_projectRuntime.BindSelectionService(&m_selectionService);
m_sceneRuntime.Reset();
m_sceneRuntime.SetBackend(CreateEngineEditorSceneBackend());
AppendUIEditorRuntimeTrace("startup", "EditorSceneRuntime::Initialize begin");
m_sceneRuntime.Initialize(m_session.projectRoot);
AppendUIEditorRuntimeTrace("startup", "EditorSceneRuntime::Initialize end");