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 Array<T> registered without element type #836

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

Bromeon
Copy link
Member

@Bromeon Bromeon commented Aug 3, 2024

Since it's hard to see in the diff, the actual bugfix is moving Var::property_hint() one level up to GodotType::property_hint_info(), so that it is also picked up by #[func] parameter/return types.

Reuses PropertyHintInfo inside PropertyInfo. More refactorings to come.

Fixes #324.

Also moves hint + hint-string from Var to GodotType and reuses
PropertyHintInfo.
@Bromeon Bromeon added bug c: register Register classes, functions and other symbols to GDScript labels Aug 3, 2024
@Bromeon Bromeon added this pull request to the merge queue Aug 3, 2024
@GodotRust
Copy link

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

Merged via the queue into master with commit b4ffe6f Aug 3, 2024
14 checks passed
@Bromeon Bromeon deleted the bugfix/array-export-hints branch August 3, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug c: register Register classes, functions and other symbols to GDScript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Array<T> is exported wrongly as Array, instead of Array[T]
2 participants