-
-
Notifications
You must be signed in to change notification settings - Fork 22.1k
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 Camera2D position smoothing properties not being grouped #74251
Conversation
Actually the issue is in here: Also seems strange the internal variables are still named |
The internal variables can be renamed without breaking any compatibility right? |
|
GDExtension only has access to the same methods as GDScript (bound in |
9b54039
to
5214cd3
Compare
I fixed the issues mentioned in the discussion, the internal properties has been renamed to match the exported names. However I noticed that the 3to4 project converter converts to old incorrect names such as "follow_smoothing_enabled". Should we change those as well? |
Yeah, as it's incorrect anyway. Currently it would rename godot/editor/renames_map_3_to_4.cpp Line 1125 in 61d2c85
Note there are also some in C# renaming map: godot/editor/renames_map_3_to_4.cpp Line 724 in 61d2c85
godot/editor/renames_map_3_to_4.cpp Line 910 in 61d2c85
godot/editor/renames_map_3_to_4.cpp Line 915 in 61d2c85
godot/editor/renames_map_3_to_4.cpp Lines 1218 to 1219 in 61d2c85
cc @raulsntos Just to be sure: all of these are also incorrect and the new names should have |
Ok just as I expected, I've pushed a fix. |
Yes, but keep in mind that the methods are internal in 4.0 and the properties should be used instead. I don't think the project converter is able to do this kind of conversion but I also don't expect these methods to have a high usage since they were marked obsolete in 3.x. |
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.
LGTM.
What @raulsntos mentioned regarding how C# methods which were changed to be internal
in 4.0 are treated by the 3to4 converter seems like a potential seperate issue, out of scope of this PR.
Thanks! |
Cherry-picked for 4.0.1. |
#65779 introduced a bug where Camera2D position smoothing properties aren't grouped due to the property names not matching the group name. This pr fixes that.
Before:

After:

EDIT: Also fixed the 3to4 project upgrader upgrading to invalid follow_smoothing property names