From bb91af627399a575fe0c2c42540f58a1fab1932b Mon Sep 17 00:00:00 2001 From: Gino Valente Date: Sat, 25 Feb 2023 21:51:06 +0000 Subject: [PATCH] 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`. --- crates/bevy_reflect/src/type_registry.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/bevy_reflect/src/type_registry.rs b/crates/bevy_reflect/src/type_registry.rs index c19ce9bd831af1..649a43583d903b 100644 --- a/crates/bevy_reflect/src/type_registry.rs +++ b/crates/bevy_reflect/src/type_registry.rs @@ -73,6 +73,7 @@ impl TypeRegistry { pub fn new() -> Self { let mut registry = Self::empty(); registry.register::(); + registry.register::(); registry.register::(); registry.register::(); registry.register::(); @@ -87,6 +88,7 @@ impl TypeRegistry { registry.register::(); registry.register::(); registry.register::(); + registry.register::(); registry }