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

Map Vector2.Axis and Vector2i.Axis to Vector2Axis #1012

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

tomsep
Copy link
Contributor

@tomsep tomsep commented Jan 12, 2025

Missing mapping can cause problems when building bindings for custom Godot or gdextensions using those enums.

Similar to #797.

@tomsep tomsep force-pushed the feature/vector2-axis-mapped branch from e1348f6 to 0ecea78 Compare January 12, 2025 21:18
@Bromeon
Copy link
Member

Bromeon commented Jan 12, 2025

Thank you!

Out of curiosity, in which APIs did you encounter this?

@GodotRust
Copy link

API docs are being generated and will be shortly available at: https://godot-rust.github.io/docs/gdext/pr-1012

@tomsep
Copy link
Contributor Author

tomsep commented Jan 12, 2025

Thank you!

Out of curiosity, in which APIs did you encounter this?

I was working of extending PhysicsServer2D of Godot to better support godot-rapier. Having Vector2::Axis arguments there would break gdext build.

Missing mapping can cause problems when building bindings
for custom Godot or GDExtensions using those enums.
@Bromeon Bromeon force-pushed the feature/vector2-axis-mapped branch from 0ecea78 to ae789d9 Compare January 12, 2025 22:04
@Bromeon Bromeon added feature Adds functionality to the library c: engine Godot classes (nodes, resources, ...) labels Jan 12, 2025
@Bromeon Bromeon added this pull request to the merge queue Jan 12, 2025
@Bromeon
Copy link
Member

Bromeon commented Jan 12, 2025

Added a comment so it's not accidentally removed due to "unused" in the future.
Thanks!

@Bromeon Bromeon changed the title Map Vector2.Axis and Vector2i.Axis to Vector2Axis Map Vector2.Axis and Vector2i.Axis to Vector2Axis Jan 12, 2025
Merged via the queue into godot-rust:master with commit d7dfcf2 Jan 12, 2025
15 checks passed
@tomsep tomsep deleted the feature/vector2-axis-mapped branch January 12, 2025 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: engine Godot classes (nodes, resources, ...) feature Adds functionality to the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants