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
Starting with Godot 4.2, changing a Control node's anchor offsets with an AnimationPlayer node results in the offsets "snapping" to the keyframes, as if Nearest interpolation were used.
This only applies to the Linear Interpolation Mode; Cubic still works as expected.
I encountered this regression when upgrading my project from 4.1.3 to 4.2. Minimum reproduction project provided below.
Steps to reproduce
Create a Control node with a Custom anchor preset.
Create an AnimationPlayer track for one or more of its anchor offsets, with the Continuous update mode and Linear interpolation.
Should the linear interpolation be more lenient when asked to interpolate between scalar values that require a type cast?
Do you remember how you created that animation? Did you, for example, animate the anchors first and then change the tracks to offset?
In any case, you can fix this particular animation by selecting the two keyframes on the left and changing their value to 1 and back to 0. This will set them to an integer 0 and the linear interpolation will be happy.
Edit: I just tried this myself: Clicking the key icon next to an offset property (or possibly any integer property) will create a float keyframe, but entering a value in the inspector for that keyframe, will set it to an integer. As a result, the interpolation will break as soon as you mix captured values (via the key icon) and manually entered values on an integer track.
Tested versions
System information
Godot v4.2.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated AMD Radeon RX 6600 (Advanced Micro Devices, Inc.; 31.0.21023.2010) - AMD Ryzen 7 5700X 8-Core Processor (16 Threads)
Issue description
Starting with Godot 4.2, changing a Control node's anchor offsets with an AnimationPlayer node results in the offsets "snapping" to the keyframes, as if Nearest interpolation were used.
This only applies to the Linear Interpolation Mode; Cubic still works as expected.
I encountered this regression when upgrading my project from 4.1.3 to 4.2. Minimum reproduction project provided below.
Steps to reproduce
Minimal reproduction project (MRP)
ControlResize.zip
The text was updated successfully, but these errors were encountered: