Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Commit

Permalink
add modelComponent.asset as dependency in play animation useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
dinomut1 committed Sep 11, 2023
1 parent d35f5f1 commit 36a4385
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,12 @@ export const LoopAnimationComponent = defineComponent({
return

playAnimationClip(entity)
}, [loopAnimationComponent.activeClipIndex, loopAnimationComponent.animationPackScene, modelComponent?.scene])
}, [
loopAnimationComponent.activeClipIndex,
loopAnimationComponent.animationPackScene,
modelComponent?.scene,
modelComponent?.asset
])

return null
}
Expand Down

0 comments on commit 36a4385

Please sign in to comment.