bevy/crates/bevy_reflect/src
Jakob Hellermann 5ae94750a1 make register on TypeRegistry idempotent (#6487)
# Objective

- adding a new `.register` should not overwrite old type data
- separate crates should both be able to register the same type

I ran into this while debugging why `register::<Handle<T>>` removed the `ReflectHandle` type data from a prior `register_asset_reflect`.


## Solution

- make `register` do nothing if called again for the same type
- I also removed some unnecessary duplicate registrations
2022-11-05 16:43:15 +00:00
..
enums Use new let-else syntax where possible (#6463) 2022-11-04 21:32:09 +00:00
impls add ReflectDefault to std types (#6429) 2022-10-31 16:35:22 +00:00
serde bevy_reflect: Binary formats (#6140) 2022-11-04 02:22:54 +00:00
array.rs bevy_reflect: Reflect doc comments (#6234) 2022-10-18 13:49:57 +00:00
fields.rs bevy_reflect: Reflect doc comments (#6234) 2022-10-18 13:49:57 +00:00
lib.rs Revert "Show prelude re-exports in docs (#6448)" (#6449) 2022-11-02 20:40:45 +00:00
list.rs Use new let-else syntax where possible (#6463) 2022-11-04 21:32:09 +00:00
map.rs Use new let-else syntax where possible (#6463) 2022-11-04 21:32:09 +00:00
path.rs Make arrays behave like lists in reflection (#5987) 2022-09-27 18:11:38 +00:00
reflect.rs bevy_reflect: Update Reflection documentation (#5841) 2022-09-02 16:17:45 +00:00
std_traits.rs fix nightly clippy warnings (#6395) 2022-10-28 21:03:01 +00:00
struct_trait.rs Use new let-else syntax where possible (#6463) 2022-11-04 21:32:09 +00:00
tuple_struct.rs Use new let-else syntax where possible (#6463) 2022-11-04 21:32:09 +00:00
tuple.rs Use new let-else syntax where possible (#6463) 2022-11-04 21:32:09 +00:00
type_info.rs bevy_reflect: Reflect doc comments (#6234) 2022-10-18 13:49:57 +00:00
type_registry.rs make register on TypeRegistry idempotent (#6487) 2022-11-05 16:43:15 +00:00
type_uuid.rs re-enable #[derive(TypeUuid)] for generics (#4118) 2022-04-26 19:41:25 +00:00
utility.rs fix nightly clippy warnings (#6395) 2022-10-28 21:03:01 +00:00