Refactor new editor state ownership model
This commit is contained in:
@@ -144,11 +144,12 @@ std::vector<WorkspaceTraceEntry> SyncWorkspaceEvents(
|
||||
EditorContext& context,
|
||||
const EditorShellRuntime& runtime) {
|
||||
std::vector<WorkspaceTraceEntry> entries = {};
|
||||
context.SyncSessionFromProjectRuntime();
|
||||
context.SyncSessionFromSelectionService();
|
||||
if (const std::optional<std::filesystem::path> scenePath =
|
||||
context.GetProjectRuntime().ConsumePendingSceneOpenPath();
|
||||
scenePath.has_value()) {
|
||||
context.GetSceneRuntime().OpenSceneAsset(scenePath.value());
|
||||
context.SyncSessionFromSelectionService();
|
||||
}
|
||||
|
||||
for (const HierarchyPanel::Event& event : runtime.GetHierarchyPanelEvents()) {
|
||||
|
||||
Reference in New Issue
Block a user