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

Resetting the animation during the Xfade produced a strange condition #73113

Closed
TokageItLab opened this issue Feb 11, 2023 · 0 comments · Fixed by #74190
Closed

Resetting the animation during the Xfade produced a strange condition #73113

TokageItLab opened this issue Feb 11, 2023 · 0 comments · Fixed by #74190

Comments

@TokageItLab
Copy link
Member

TokageItLab commented Feb 11, 2023

Godot version

4.0.rc (Also 3.x)

System information

Any

Issue description

Here is an example of a NodeTransition case. (NodeOneShot and StateMachine are also weird.)

During a 3-second crossfade from Animation A to Animation B, the parent's OneShot or Transition resets their state after 1 second has elapsed.

In this case, animation B is reset and played back, but the 2-second fade of animation A is still there.

fadebug.mp4

So, it is necessary to detect the reset and remove the remaining fade.

Steps to reproduce

Use Xfade transition and reset it during fading

Minimal reproduction project

fadetest.zip

@TokageItLab TokageItLab added this to the 4.1 milestone Feb 11, 2023
@TokageItLab TokageItLab changed the title Resetting the animation during the fade-out produced a strange condition Resetting the animation during the Xfade produced a strange condition Feb 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant