drei icon indicating copy to clipboard operation
drei copied to clipboard

mixer from useAnimations doesn't set _root property

Open yaroslavnikiforov opened this issue 3 years ago • 5 comments

  • three version: 0.129.0
  • @react-three/fiber version: 6.2.2
  • @react-three/drei version: 5.3.1
  • node version: 14.15.0
  • yarn version: 1.22.10

Problem description:

The _root property of the mixer returned by useAnimations hook is always undefined. This doesn't allow you to use methods of AnimationMixer, for example mixer.clipAction() as it relies on this property.

Relevant code:

Just try to call mixer.clipAction(clips[0]) in useEffect from this example: https://codesandbox.io/s/gltf-animations-pecl6

yaroslavnikiforov avatar Jun 03 '21 17:06 yaroslavnikiforov

Please provide a minimal reproduction of the issue.

joshuaellis avatar Jun 09 '21 19:06 joshuaellis

@joshuaellis @yaroslavnikiforov I'm facing this issue as well. These are my versions

  • three version: 0.134.0
  • @react-three/fiber version: 7.0.17
  • @react-three/drei version: 7.19.2

Any idea?

RareSecond avatar Jan 03 '22 10:01 RareSecond

Confirm this problem. I faced the same situation.

magicDvlp avatar Jan 20 '22 16:01 magicDvlp

Have the same issue.

GoreStarry avatar Apr 25 '22 05:04 GoreStarry

:tada: This issue has been resolved in version 9.66.6 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar May 08 '23 03:05 github-actions[bot]