Fix engine errors
This commit is contained in:
+2
-1
@@ -167,6 +167,7 @@ export async function setScene(name: string): Promise<void> {
|
||||
postProcess();
|
||||
}
|
||||
|
||||
const previousSceneData = currentScene.data;
|
||||
currentScene.data = data;
|
||||
self.dispatchEvent(new Event("resize"));
|
||||
|
||||
@@ -174,7 +175,7 @@ export async function setScene(name: string): Promise<void> {
|
||||
currentScene.process = process;
|
||||
|
||||
for (const callback of sceneChangeSet.values()) {
|
||||
callback(data, currentScene.data);
|
||||
callback(currentScene.data, previousSceneData);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user