Actually fix dice initial load
This commit is contained in:
parent
a229d190e4
commit
df57f09080
@ -102,6 +102,13 @@ function DiceTrayOverlay({ isOpen }) {
|
|||||||
let diceTray = new DiceTray("single", scene, shadowGenerator);
|
let diceTray = new DiceTray("single", scene, shadowGenerator);
|
||||||
await diceTray.load();
|
await diceTray.load();
|
||||||
diceTrayRef.current = diceTray;
|
diceTrayRef.current = diceTray;
|
||||||
|
|
||||||
|
// Force rerender on initialize
|
||||||
|
forceSceneRenderRef.current = true;
|
||||||
|
setTimeout(() => {
|
||||||
|
forceSceneRenderRef.current = false;
|
||||||
|
}, 1000);
|
||||||
|
|
||||||
assetLoadFinish();
|
assetLoadFinish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user