-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
PackedVector2Array reset when animated with cubic interpolation #69188
Comments
@IntangibleMatter And what's the expected behavior? AFAIK currently interpolating arrays is simply not supported. Would this be solved by #66771? cc @Mickeon |
The expected behaviour is for the array to interpolate with cubic interpolation, which usually looks nicer than linear interpolation. Linear interpolation works perfectly fine. And this is a problem with AnimationPlayers, Tweens aren't relevant in this case (afaik). |
Tweens are relevant. They share the same internal Animation class to animate all Variants. #66771 is a bit abandoned but I'll get back to it soon-ish. The PR intended to implement blending Packed Arrays with Tweeners, but I was not even accounting for the AnimationPlayer using the same methods (I just forgot it was a possibility), so I'd need to test it there too. I believe (I cannot confirm right now and I may be wrong) the issue stems from godot/scene/resources/animation.cpp Lines 5714 to 5717 in e29b982
It would probably be a good idea to implement |
Godot version
4.0 beta 6
System information
Windows 10
Issue description
When a PackedVector2Array is animated by an AnimationPlayer on a track with continuous playback and cubic interpolation enabled, the Array is set to have a size of 0 for all keyframes except the final one. When looped, all keyframes set it to have a size of 0. Ping-Pong playback still displays only the final keyframe.
Steps to reproduce
Minimal reproduction project
PackedVector2Array_anim_erase_beta6.zip
The text was updated successfully, but these errors were encountered: