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);
|
||||
await diceTray.load();
|
||||
diceTrayRef.current = diceTray;
|
||||
|
||||
// Force rerender on initialize
|
||||
forceSceneRenderRef.current = true;
|
||||
setTimeout(() => {
|
||||
forceSceneRenderRef.current = false;
|
||||
}, 1000);
|
||||
|
||||
assetLoadFinish();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user