-
-
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
Fix invalid 3-to-4 renames of add_animation
to add_animation_library
#86647
Conversation
@@ -644,7 +644,6 @@ const char *RenamesMap3To4::csharp_function_renames[][2] = { | |||
{ "_SetPlaying", "SetPlaying" }, // AnimatedSprite3D | |||
{ "_ToplevelRaiseSelf", "_TopLevelRaiseSelf" }, // CanvasItem | |||
{ "_UpdateWrapAt", "_UpdateWrapAtColumn" }, // TextEdit | |||
{ "AddAnimation", "AddAnimationLibrary" }, // AnimationPlayer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As none of the commented out conversions are mentioned in the same way in the C# part I just removed it, can add it as a commented out part if desired
add_animation
to add_animation_library
add_animation
to add_animation_library
@@ -163,6 +163,7 @@ const char *RenamesMap3To4::gdscript_function_renames[][2] = { | |||
|
|||
// { "_set_name", "get_tracker_name" }, // XRPositionalTracker -- CameraFeed uses this. | |||
// { "_unhandled_input", "_unhandled_key_input" }, // BaseButton, ViewportContainer -- Breaks Node, FileDialog, SubViewportContainer. | |||
// { "add_animation", "add_animation_library" }, // AnimationPlayer -- Breaks SpriteFrames (and isn't a correct conversion). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically this now applies to AnimationMixer
, but wanting to allow cherry picking of this so not changing this
73edbc4
to
90fe583
Compare
This rename breaks `SpriteFrames` and also isn't valid as the new method takes an `AnimationLibrary`, not an `Animation`
90fe583
to
4b7ea9f
Compare
Thanks! |
Thank you! |
Cherry-picked for 4.1.4. (Same caveat.) |
This rename breaks
SpriteFrames
and also isn't valid as the new method takes anAnimationLibrary
, not anAnimation
This change needs a more elaborate fix and should be mentioned in the migration page, see:
Document migration from 3.x for AnimationPlayer.add_animation #86611
Fixes: Upgrading from 3 to 4 changes functions to invalid functions #86646