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

Fixes to animation graph evaluation #15689

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

mweatherley
Copy link
Contributor

Objective

Fix a couple of substantial errors found during the development of #15665:

  • AnimationCurveEvaluator::add was secretly unreachable. In other words, additive blending never actually occurred.
  • Weights from the animation graph nodes were ignored, and only ActiveAnimation's weights were used.

Solution

Made additive blending reachable and included the graph node weight in the weight of the stack elements appended in the curve application loop of animate_targets.

Testing

Tested on existing examples and on the new example added in #15665.

@mweatherley mweatherley added C-Bug An unexpected or incorrect behavior A-Animation Make things move and change over time X-Uncontroversial This work is generally agreed upon D-Straightforward Simple bug fixes and API improvements, docs, test and examples labels Oct 7, 2024
@mweatherley mweatherley added this to the 0.15 milestone Oct 7, 2024
@mweatherley mweatherley added the S-Needs-Review Needs reviewer attention (from anyone!) to move forward label Oct 7, 2024
@alice-i-cecile alice-i-cecile changed the title Fixes to graph evaluation Fixes to animation graph evaluation Oct 7, 2024
@pcwalton
Copy link
Contributor

pcwalton commented Oct 7, 2024

Looks good, oops!

@mockersf mockersf added this pull request to the merge queue Oct 7, 2024
Merged via the queue into bevyengine:main with commit d3657a0 Oct 7, 2024
32 checks passed
@mweatherley mweatherley deleted the blending-fixes branch October 7, 2024 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Animation Make things move and change over time C-Bug An unexpected or incorrect behavior D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward X-Uncontroversial This work is generally agreed upon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants