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

Set null into Godot Engint APIs nullable parameters as default #823

Merged
merged 1 commit into from
Jul 28, 2024

Conversation

quasardtm
Copy link
Contributor

#800 allows nullable parameters to be passed to Godot Engine API methods. This would allow the default parameters to be null as well?

Fixed to initialize them with ObjectArg::null(). (I tried this with the draw_polygon() method and it worked fine. Is this fix enough?)

@Bromeon Bromeon added bug c: engine Godot classes (nodes, resources, ...) labels Jul 28, 2024
@Bromeon
Copy link
Member

Bromeon commented Jul 28, 2024

Oh, good catch, I missed this one. Yes, looks good, thank you! 👍

@Bromeon Bromeon added this pull request to the merge queue Jul 28, 2024
@GodotRust
Copy link

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

Merged via the queue into godot-rust:master with commit aa7107a Jul 28, 2024
14 checks passed
@quasardtm quasardtm deleted the null-default-parameter branch July 29, 2024 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug c: engine Godot classes (nodes, resources, ...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants