Fix bug where dice tray doesn't show after load
This commit is contained in:
parent
b8e5554058
commit
a229d190e4
@ -71,9 +71,9 @@ function DiceTrayOverlay({ isOpen }) {
|
||||
};
|
||||
}, [isOpen]);
|
||||
|
||||
const handleSceneMount = useCallback(({ scene, engine }) => {
|
||||
const handleSceneMount = useCallback(async ({ scene, engine }) => {
|
||||
sceneRef.current = scene;
|
||||
initializeScene(scene);
|
||||
await initializeScene(scene);
|
||||
engine.runRenderLoop(() => update(scene));
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
|
Loading…
Reference in New Issue
Block a user