Skip to content
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 Control::set_global_position for rotated/scaled transforms #89502

Merged

Conversation

kleonc
Copy link
Member

@kleonc kleonc commented Mar 15, 2024

Not sure how I've tested #87432 that I haven't noticed this but the calculations in there were correct only for get_internal_transform().get_origin() being zero. Redone the calculations (and kinda left them in comments), now they should be correct. (cc @Rindbee)

Fixes #89497.
Fixes #85069.

@kleonc kleonc added this to the 4.3 milestone Mar 15, 2024
@kleonc kleonc requested a review from a team as a code owner March 15, 2024 03:27
Copy link
Contributor

@Rindbee Rindbee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, now it is correct.

@akien-mga akien-mga merged commit c7061d5 into godotengine:master Mar 15, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants