Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnimationMixer: remove unnecessary prototype access #24036

Merged
merged 1 commit into from
May 10, 2022

Conversation

marcofugaro
Copy link
Contributor

Related issue: #24006 (comment)

Description

Don't know why that class was using the prototype to store a variable, it is not necessary since _controlInterpolantsResultBuffer is just a variable that holds the result.

This PR improves tree-shaking:

Before this PR After this PR
Screenshot 2022-05-09 at 18 16 06 Screenshot 2022-05-09 at 18 16 12

@mrdoob mrdoob added this to the r141 milestone May 10, 2022
@mrdoob mrdoob merged commit 7bce459 into mrdoob:dev May 10, 2022
@mrdoob
Copy link
Owner

mrdoob commented May 10, 2022

Thanks!

abernier pushed a commit to abernier/three.js that referenced this pull request Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants