From 52e42bfdb3d56644da03e60969b1a2bedac8efc2 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 12 Jun 2026 20:41:38 +0200 Subject: fix(engine): no field type refs for generic types deriving Reflection --- engine-macros/src/reflection/struct_impl.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'engine-macros/src/reflection/struct_impl.rs') diff --git a/engine-macros/src/reflection/struct_impl.rs b/engine-macros/src/reflection/struct_impl.rs index 92cf00b..2a271e0 100644 --- a/engine-macros/src/reflection/struct_impl.rs +++ b/engine-macros/src/reflection/struct_impl.rs @@ -29,6 +29,7 @@ pub fn generate(input: syn::ItemStruct) -> proc_macro2::TokenStream quote! { std::mem::offset_of!(Self, #field_index) } } }, + type_reflection_optional: input.generics.params.is_empty(), }, ) }); -- cgit v1.2.3-18-g5258