-
-
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
Tween with float
property will be forced to interpolate as int
type when passing int
to Tween's argument
#87326
Comments
I'm getting a different result in 4.3 dev2: xXrqr0kLWU.mp4Seems like this was fixed by some of the animation changes. Can you confirm the issue is fixed for you in the newest version? |
The |
Fixed by #86046
Not sure what you are referring to, but if you mix Int and float, the float will take precedence to make subsequent transitions consistent. This is an intended behavior. If you have any other problems, please check the latest master or 4.3.dev2 or later versions and report them if you still have problems. |
See how the Calling To me it seems like unintended behavior / bug. Specifically when calling godot/scene/animation/tween.cpp Lines 506 to 512 in 0bcc0e9
godot/scene/animation/tween.cpp Lines 73 to 74 in 0bcc0e9
Hence godot/scene/animation/tween.cpp Line 564 in 0bcc0e9
|
float
property will be forced to interpolate as int
type when passing int as an argument
float
property will be forced to interpolate as int
type when passing int as an argumentfloat
property will be forced to interpolate as int
type when passing int
as an argument of Tween
float
property will be forced to interpolate as int
type when passing int
as an argument of Tweenfloat
property will be forced to interpolate as int
type when passing int
to Tween's argument
Tested versions
4.2.1
System information
windows10
Issue description
tween interpolates by the type of the
from
argument, not thefloat
type of theproperty
.Does not work if
as_relative
is used.Steps to reproduce
Run the MRP project attached below.
Minimal reproduction project (MRP)
tween-int.zip
The text was updated successfully, but these errors were encountered: