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

Anim folder circular dependency #4745

Merged
merged 2 commits into from
Oct 13, 2022
Merged

Conversation

ellthompson
Copy link
Contributor

Removes the circular dependency from the anim folder. The AnimTargetValue class is a dependency of AnimEvaluator, however it was using a couple of static blending functions from AnimEvaluator. These static functions have been moved to their own class called AnimBlend.

I confirm I have read the contributing guidelines and signed the Contributor License Agreement.

@ellthompson ellthompson added the area: animation Animation related issue label Oct 13, 2022
@ellthompson ellthompson requested a review from a team October 13, 2022 15:18
@ellthompson ellthompson self-assigned this Oct 13, 2022
@@ -0,0 +1,90 @@
class AnimBlend {
static _dot(a, b) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason why there's underscores on these static functions?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, i'll remove them.

Copy link
Contributor

@willeastcott willeastcott left a comment

Choose a reason for hiding this comment

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

Lovely - to see a cyclic dependency removed is a beautiful thing. ⭐

@ellthompson ellthompson merged commit 5188888 into main Oct 13, 2022
@ellthompson ellthompson deleted the anim-evaluator-circular-dep branch October 13, 2022 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: animation Animation related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants