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 extension bindings for motion collision/result structs #74671

Merged
merged 1 commit into from
Mar 10, 2023

Conversation

mihe
Copy link
Contributor

@mihe mihe commented Mar 9, 2023

It seems some changes were made to PhysicsServer3D::MotionCollision (#63650) and PhysicsServer3D::MotionResult (#64195) without updating the extension bindings defined in register_server_types(), causing a mismatch in struct layout between the engine and (for example) godot-cpp. This means that when writing to certain fields of these structs from an extension, such as when implementing PhysicsServer3DExtension::_body_test_motion, you end up stomping on memory of other fields.

This PR updates the bindings to again be in sync with the respective structs.

@akien-mga
Copy link
Member

Thanks!

@YuriSizov
Copy link
Contributor

Cherry-picked for 4.0.1.

@mihe mihe deleted the motion-bindings branch March 18, 2023 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants