Skip to content

Commit

Permalink
fix: error 'cannot redefine property' in useanimations when animation…
Browse files Browse the repository at this point in the history
…clip.name duplicated (#1400)
  • Loading branch information
vnvyvu committed May 8, 2023
1 parent 4b8d257 commit b841c4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/useAnimations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export function useAnimations<T extends AnimationClip>(
)
}
},
configurable: true,
})
)
return { ref: actualRef, clips, actions, names: clips.map((c) => c.name), mixer }
Expand Down

1 comment on commit b841c4c

@vercel
Copy link

@vercel vercel bot commented on b841c4c May 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.