We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d3745f8 + 3acd49c commit c5ad021Copy full SHA for c5ad021
godot-macros/src/class/derive_godot_class.rs
@@ -53,7 +53,7 @@ pub fn derive_godot_class(decl: Declaration) -> ParseResult<TokenStream> {
53
let godot_withbase_impl = if let Some(Field { name, .. }) = &fields.base_field {
54
quote! {
55
impl ::godot::obj::WithBaseField for #class_name {
56
- fn to_gd(&self) -> Gd<Self> {
+ fn to_gd(&self) -> ::godot::obj::Gd<Self> {
57
::godot::obj::Gd::clone(&*self.#name).cast()
58
}
59
0 commit comments