Skip to content

Commit 56612c3

Browse files
committed
docs: fix storybook build
1 parent 70783d5 commit 56612c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/soba/src/controls/scroll-controls.stories.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ class LittlestTokyo {
5555
const animations = injectAnimations(this.gltf, this.scene);
5656

5757
injectBeforeRender(({ delta, camera }) => {
58+
if (!animations.isReady) return;
59+
5860
const action = animations.actions['Take 001'];
59-
if (!action) return;
6061

6162
if (!action.paused) {
6263
action.play().paused = true;

0 commit comments

Comments
 (0)