bevy/crates/bevy_core
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
..
src make register on TypeRegistry idempotent (#6487) 2022-11-05 16:43:15 +00:00
Cargo.toml Add serialize feature to bevy_core (#6423) 2022-10-31 21:20:57 +00:00