Initialize EditorSimulationController in ViewportCanvas tests

This commit is contained in:
2026-04-27 15:45:54 +02:00
parent 5950ddb1cd
commit 1032dcdbde

View File

@@ -150,8 +150,7 @@ describe("ViewportCanvas", () => {
panelId="topLeft"
world={sceneDocument.world}
sceneDocument={sceneDocument}
editorSimulationScene={null}
editorSimulationClock={null}
editorSimulationController={new EditorSimulationController()}
projectAssets={sceneDocument.assets}
loadedModelAssets={{}}
loadedImageAssets={{}}
@@ -211,8 +210,7 @@ describe("ViewportCanvas", () => {
panelId="topLeft"
world={sceneDocument.world}
sceneDocument={sceneDocument}
editorSimulationScene={null}
editorSimulationClock={null}
editorSimulationController={new EditorSimulationController()}
projectAssets={sceneDocument.assets}
loadedModelAssets={{}}
loadedImageAssets={{}}
@@ -274,8 +272,7 @@ describe("ViewportCanvas", () => {
panelId="topLeft"
world={sceneDocument.world}
sceneDocument={sceneDocument}
editorSimulationScene={null}
editorSimulationClock={null}
editorSimulationController={new EditorSimulationController()}
projectAssets={sceneDocument.assets}
loadedModelAssets={{}}
loadedImageAssets={{}}
@@ -400,8 +397,7 @@ describe("ViewportCanvas", () => {
panelId="topLeft"
world={sceneDocument.world}
sceneDocument={sceneDocument}
editorSimulationScene={null}
editorSimulationClock={null}
editorSimulationController={new EditorSimulationController()}
projectAssets={sceneDocument.assets}
loadedModelAssets={{}}
loadedImageAssets={{}}
@@ -469,8 +465,7 @@ describe("ViewportCanvas", () => {
panelId="topLeft"
world={sceneDocument.world}
sceneDocument={sceneDocument}
editorSimulationScene={null}
editorSimulationClock={null}
editorSimulationController={new EditorSimulationController()}
projectAssets={sceneDocument.assets}
loadedModelAssets={{}}
loadedImageAssets={{}}
@@ -533,8 +528,7 @@ describe("ViewportCanvas", () => {
panelId="topLeft"
world={sceneDocument.world}
sceneDocument={sceneDocument}
editorSimulationScene={null}
editorSimulationClock={null}
editorSimulationController={new EditorSimulationController()}
projectAssets={sceneDocument.assets}
loadedModelAssets={{}}
loadedImageAssets={{}}
@@ -614,8 +608,7 @@ describe("ViewportCanvas", () => {
panelId="topLeft"
world={focusedSceneDocument.world}
sceneDocument={focusedSceneDocument}
editorSimulationScene={null}
editorSimulationClock={null}
editorSimulationController={new EditorSimulationController()}
projectAssets={focusedSceneDocument.assets}
loadedModelAssets={{}}
loadedImageAssets={{}}
@@ -657,8 +650,7 @@ describe("ViewportCanvas", () => {
panelId="topLeft"
world={updatedSceneDocument.world}
sceneDocument={updatedSceneDocument}
editorSimulationScene={null}
editorSimulationClock={null}
editorSimulationController={new EditorSimulationController()}
projectAssets={updatedSceneDocument.assets}
loadedModelAssets={{}}
loadedImageAssets={{}}