-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Animation CAPTURE mode does not work in AnimationTree #55110
Comments
May be related by #48432. |
It's a stretch 2+ years later, but in case you still have a project trying to make use of |
@akien-mga I'll do it tonight! |
@akien-mga No, it's not fixed. And it may be because capture node isn't working for AnimationPlayer either. So it's just straight-up broken. _.TestAnimate.tscn.-.TestAnimationCapture.-.Godot.Engine.2024-02-09.09-09-09.mp4Note, if I go back to 4.1 and test it out, the AnimationPlayer IS working with capture (although AnimationTree isn't), so it must have been broken by this commit or a recent one. TestAnimate.tscn.-.TestAnimationCapture.-.Godot.Engine.2024-02-09.09-12-08.mp4 |
@kingoftheconnors You should read the PR description. Currently, the editor does not playback the capture so you must use |
@TokageItLab Ah, thanks! I've tested it out using
TestAnimationCapture.DEBUG.2024-02-09.14-36-55.mp4I also tested it with |
Use |
Ah, that works! I can confirm this issue is fixed. I'll close this. |
Godot version
3.3.2
System information
Windows 10, GLES3, Intel HD Graphics 4600
Issue description
I created an animation using the CAPTURE transition mode. I expected this to work in an AnimationTreeStateMachine, with the captured tween starting at the node's position when the animation starts. Instead, it acts just like a regular transition mode, causing the property to be insta-set to the first key.
Steps to reproduce
When run as an AnimationPlayer using
$AnimationPlayer.start("animation")
, it works as expected; however, when placing the animation in an AnimationTreeStateMachine and using$AnimationTree['parameters/playback'].travel("animation")
it does not do any capturing and starts the node property at the first key.Godot.Engine.-.AnimationTreeProblem.-.Test.tscn._.2021-11-18.21-33-50.mp4
It looks as though the AnimationTree does not handle the CAPTURE mode.
Animation_Player.cpp, line 400:
Animation_Tree.cpp, line 937:
Both use
a->value_track_interpolation()
, but the AnimationTree does not intercept the request ifp_time < first_time_key
like the AnimationPlayer does.Minimal reproduction project
AnimationTreeProblem.zip
The text was updated successfully, but these errors were encountered: