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

Switch between global and local transforms when top level is toggled in a Node3D #87100

Conversation

ryevdokimov
Copy link
Contributor

@ryevdokimov ryevdokimov commented Jan 12, 2024

Required, but does not fully fix: #86861 due to how AABBs bounds are calculated.

Currently when you toggle top level, the transform values remain relative to the origin of the parent. This PR fixes this and will now toggle between global and local transforms.

The code that has been modified has been in Godot since the beginning, and I can't think of any reason why it's needed now. I'm assuming this is an artifact of some work around to something that existed a decade ago, and since 3D has been majorly reworked is no longer required.

2024-01-12.01-09-26.mp4

@ryevdokimov
Copy link
Contributor Author

Closing as a duplicate to #84643, which already solves this problem, and adds to it.

@AThousandShips AThousandShips removed this from the 4.3 milestone Jan 15, 2024
@ryevdokimov ryevdokimov deleted the remove-editor-check-set-as-top-level branch January 15, 2024 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants