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

Fix small bug in crossFade animation example #24287

Merged
merged 4 commits into from
Jun 30, 2022
Merged

Fix small bug in crossFade animation example #24287

merged 4 commits into from
Jun 30, 2022

Conversation

mudroljub
Copy link
Contributor

Related issue: #XXXX

Description

I found a small bug in crossFade animation example on threejs.org website:
https://threejs.org/examples/#webgl_animation_skinning_additive_blending

BUG: When you click again on the active animation (for example run or walk), the character first put hands in T position, then continue with the same animation.

My pull request solves it and the animation is smooth now.

@Mugen87
Copy link
Collaborator

Mugen87 commented Jun 29, 2022

Seems it still happens if you open the URL and directly click on idle. Maybe putting the check at a different place?

@mudroljub
Copy link
Contributor Author

Fixed, good that you have spoted it.

@Mugen87
Copy link
Collaborator

Mugen87 commented Jun 30, 2022

@mudroljub I've moved the check a bit so prepareCrossFade() is only called when required.

@mrdoob mrdoob added this to the r143 milestone Jun 30, 2022
@mrdoob mrdoob merged commit 4888a8f into mrdoob:dev Jun 30, 2022
@mrdoob
Copy link
Owner

mrdoob commented Jun 30, 2022

Thanks!

abernier pushed a commit to abernier/three.js that referenced this pull request Sep 16, 2022
* fix small bug

* fix tabs instead of spaces

* fix idle action

* Update webgl_animation_skinning_additive_blending.html

Co-authored-by: Michael Herzog <[email protected]>
snagy pushed a commit to snagy/three.js-1 that referenced this pull request Sep 21, 2022
* fix small bug

* fix tabs instead of spaces

* fix idle action

* Update webgl_animation_skinning_additive_blending.html

Co-authored-by: Michael Herzog <[email protected]>
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