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
When using an AnimationPlayer to control a float property of an object between 0.0 and 1.0, I noticed the property was going way over 1.0. It looks like this only happens when the property is set to cubically interpolate. (Linear and nearest interpolations both provide values clamped between 0 and 1, as expected.
Steps to reproduce
Create a script with a float property on it
Attach that script to a node
Create a new AnimationPlayer node, and set up a track to change the float property you just set up
Add keyframes to interpolate between 0 and 1, and set the interpolation type to cubic
Observe that the value of the float property reaches values outside of 0 and 1
Godot version
v4.1.1.stable.mono.official [bd6af8e]
System information
Godot v4.1.1.stable.mono - Windows 10.0.22621 - Vulkan (Forward+) - dedicated AMD Radeon RX 6700S (Advanced Micro Devices, Inc.; 31.0.12024.2005) - AMD Ryzen 9 6900HS with Radeon Graphics (16 Threads)
Issue description
When using an AnimationPlayer to control a float property of an object between 0.0 and 1.0, I noticed the property was going way over 1.0. It looks like this only happens when the property is set to cubically interpolate. (Linear and nearest interpolations both provide values clamped between 0 and 1, as expected.
Steps to reproduce
Minimal reproduction project
animation-bug-minrepro.zip
The text was updated successfully, but these errors were encountered: