You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a slight discrepancy in the properties 'current_animation_position' and 'current_animation_length' of AnimationPlayer when an animation has finished playing.
These properties should be equal, and this was the behavior in the previous 4.3 beta 3.
Steps to reproduce
Create an animation in AnimationPlayer, of any arbitrary length.
In your process function, check if the position of the animation is equal to the length of the animation.
This value will always be false, even after the animation has finished.
Since approximation should be used as the comparison method in most cases, so I believe the correct direction is to fix that cases where exact matching should be assumed, such as finished, to snap current_position to animation_length instead of using exactness in the comparison method.
One possible change from 4.2 is that the end signal will be given only one frame earlier (in cases where there is a decimal point error there).
However, this means that prior to 4.2, Animation was only advancing the animation by a decimal point error at the end of the animation, meaning that there was one frame at the end of the animation where no change actually occurred. So now the signal should be fired on more accurate timing as end of the animation.
Tested versions
4.3 rc 1
System information
Windows 11
Issue description
There is a slight discrepancy in the properties 'current_animation_position' and 'current_animation_length' of AnimationPlayer when an animation has finished playing.
These properties should be equal, and this was the behavior in the previous 4.3 beta 3.
Steps to reproduce
Create an animation in AnimationPlayer, of any arbitrary length.
In your process function, check if the position of the animation is equal to the length of the animation.
This value will always be false, even after the animation has finished.
Minimal reproduction project (MRP)
broken-animations.zip
The text was updated successfully, but these errors were encountered: