mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 22:18:33 +00:00
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:
parent
f420c518c0
commit
a89277d5bf
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue