bevy_reflect: Add missing primitive registrations (#7815)

# Objective

There were a couple primitive types missing from the default `TypeRegistry` constructor.

## Solution

Added the missing registrations for `char` and `String`.
This commit is contained in:
Gino Valente 2023-02-25 21:51:06 +00:00
parent f420c518c0
commit a89277d5bf

View file

@ -73,6 +73,7 @@ impl TypeRegistry {
pub fn new() -> Self {
let mut registry = Self::empty();
registry.register::<bool>();
registry.register::<char>();
registry.register::<u8>();
registry.register::<u16>();
registry.register::<u32>();
@ -87,6 +88,7 @@ impl TypeRegistry {
registry.register::<isize>();
registry.register::<f32>();
registry.register::<f64>();
registry.register::<String>();
registry
}