Skip to content

Commit aa7107a

Browse files
authored
Merge pull request #823 from quasardtm/null-default-parameter
Set null into Godot Engint APIs nullable parameters as default
2 parents 66bd5ad + 49f7392 commit aa7107a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godot-codegen/src/conv/type_conversions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ fn to_rust_expr_inner(expr: &str, ty: &RustTy, is_inner: bool) -> TokenStream {
266266
return match ty {
267267
RustTy::BuiltinIdent(ident) if ident == "Variant" => quote! { Variant::nil() },
268268
RustTy::EngineClass { .. } => {
269-
quote! { unimplemented!("see https://github.com/godot-rust/gdext/issues/156") }
269+
quote! { ObjectArg::null() }
270270
}
271271
_ => panic!("null not representable in target type {ty:?}"),
272272
}

0 commit comments

Comments
 (0)