Skip to content

Commit

Permalink
feat(anim): ACT-1283 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ericjansenrpm committed Feb 10, 2025
1 parent 39a81aa commit c250993
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ export const AnimationModel: FC<AnimationModelProps> = ({
const assetMixerRef = useRef<Array<AnimationMixer> | null>(null);

useEffect(() => {
assetMixerRef.current = playAssetIdleAnimation(scene as unknown as Scene, embeddedAnimations);
assetMixerRef.current = playAssetIdleAnimation(scene, embeddedAnimations);

return () => {
disposeAssetAnimations(assetMixerRef.current, scene as unknown as Scene);
disposeAssetAnimations(assetMixerRef.current, scene);

assetMixerRef.current = null;
};
Expand Down

0 comments on commit c250993

Please sign in to comment.