-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Converter: Rename 3.x Vector2 clamped
to limit_length
#73971
Conversation
editor/renames_map_3_to_4.cpp
Outdated
@@ -579,7 +579,7 @@ const char *RenamesMap3To4::gdscript_function_renames[][2] = { | |||
// Remember to add them to the builtin_types_excluded_functions variable, because for now these functions cannot be listed. | |||
// { "empty", "is_empty" }, // Array -- Used as custom rule. Be careful, this will be used everywhere. | |||
// { "remove", "remove_at" }, // Array -- Breaks Directory and several more. | |||
{ "clamped", "clamp" }, // Vector2 -- Be careful, this will be used everywhere. | |||
{ "clamped", "limit_length" }, // Vector2 -- Doc already said for 3.5 clamped is deprecated and limit_lenght should be used |
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.
The comment (and the commit message) has a typo, but I'd simply remove it, it's the correct rename and doesn't require justification in the code.
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.
thank you for the input, I reverted the comment to what it was previously. I am 100% sure the rename is correct after this change, but would expect to get confirmation from anyone else
clamped
to limit_length
Looks good! Could you squash the commits? See PR workflow for instructions. |
happy to oblidge |
The CI failed due to a workaround that needed to be updated, so I amended the commit to fix it up, and also added the missing C# conversion. |
Thanks! And congrats for your first merged Godot contribution 🎉 |
Doc already said for 3.5 clamped is deprecated and limit_lenght should be used, clamp is the wrong function