You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am following this R3F tutorial on YouTube, where animation transitions should be smooth. However, in my environment, I noticed that a T-pose briefly appears when switching animations.
After investigating step by step, I found that this issue occurs after upgrading @react-three/drei from 9.81.1 to 9.81.2.
What is your question:
I am following this R3F tutorial on YouTube, where animation transitions should be smooth. However, in my environment, I noticed that a T-pose briefly appears when switching animations.
After investigating step by step, I found that this issue occurs after upgrading
@react-three/drei
from9.81.1
to9.81.2
.Steps to Reproduce
@react-three/[email protected]
→ Animations transition smoothly.@react-three/[email protected]
→ A T-pose briefly appears when switching animations.Open the toggle to see the problem in a Gif image
Version Tests
Possible Cause
Looking at the release notes for
9.81.2
, I found this commit:🔗 Commit: "fix(useAnimations): correctly stop all actions when clips change"
This commit moves
mixer.stopAllAction()
from a cleanup function insideuseEffect
to execute immediately whenclips
change.This seems to affect animation switching behavior.
Question
What is the recommended way to migrate to
9.81.2
without animations unexpectedly stopping or briefly showing a T-pose?Here is my environment:
Here is my code:
Thanks for your help!
The text was updated successfully, but these errors were encountered: