bevy/crates/bevy_reflect/src
Gino Valente 01b910a148
bevy_reflect: Fix dynamic type serialization (#10103)
# Objective

Fixes #10086

## Solution

Instead of serializing via `DynamicTypePath::reflect_type_path`, now
uses the `TypePath` found on the `TypeInfo` returned by
`Reflect::get_represented_type_info`.

This issue was happening because the dynamic types implement `TypePath`
themselves and do not (and cannot) forward their proxy's `TypePath`
data. The solution was to access the proxy's type information in order
to get the correct `TypePath` data.

## Changed

- The `Debug` impl for `TypePathTable` now includes output for all
fields.
2023-10-16 23:31:16 +00:00
..
enums reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
impls Migrate Quat reflection strategy from "value" to "struct" (#10068) 2023-10-09 22:01:42 +00:00
path Fix some nightly warnings (#9672) 2023-09-02 18:35:06 +00:00
serde bevy_reflect: Fix dynamic type serialization (#10103) 2023-10-16 23:31:16 +00:00
array.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
fields.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
from_reflect.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
lib.rs Migrate Quat reflection strategy from "value" to "struct" (#10068) 2023-10-09 22:01:42 +00:00
list.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
map.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
reflect.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
std_traits.rs fix nightly clippy warnings (#6395) 2022-10-28 21:03:01 +00:00
struct_trait.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
tuple_struct.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
tuple.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
type_info.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
type_path.rs bevy_reflect: Fix dynamic type serialization (#10103) 2023-10-16 23:31:16 +00:00
type_registry.rs reflect: TypePath part 2 (#8768) 2023-10-09 19:33:03 +00:00
type_uuid_impl.rs implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633) 2023-02-16 17:09:44 +00:00
type_uuid.rs implement TypeUuid for primitives and fix multiple-parameter generics having the same TypeUuid (#6633) 2023-02-16 17:09:44 +00:00
utility.rs Removed once_cell (#10079) 2023-10-12 10:20:07 +00:00