Skip to content

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
@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