Use active_types in ReflectEnum::get_type_registration.
Instead of `active_fields`. This makes it match `ReflectStruct`, and avoids redundant calls within the generated `register_type_dependencies` when the same type is used in multiple enum variant fields.
This commit is contained in:
parent
ed1a5ab94a
commit
169307e781
@ -865,7 +865,7 @@ impl<'a> ReflectEnum<'a> {
|
||||
crate::registration::impl_get_type_registration(
|
||||
where_clause_options,
|
||||
None,
|
||||
Some(self.active_fields().map(StructField::reflected_type)),
|
||||
Some(self.active_types().iter()),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user