From b2ece979e3fc049a38c7c0b26c405dd945e0546c Mon Sep 17 00:00:00 2001 From: Ida Iyes Date: Tue, 23 Aug 2022 21:19:29 +0000 Subject: [PATCH] Add missing type registrations for bevy_math types (#5758) Type registrations were only present for some of the `bevy_math` types, and missing for others. This is a very strange inconsistency, given that they all impl `Reflect` and `FromReflect`. In practice, this means these types cannot be used in scenes. In particular, this is especially problematic, because `Affine3A` is one of the missing types, and it is now used in `GlobalTransform`. Trying to create a bevy scene that contains `GlobalTransform`s results in an error due to the missing type registration. --- crates/bevy_core/src/lib.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/crates/bevy_core/src/lib.rs b/crates/bevy_core/src/lib.rs index bd4b54d4cef27..7cc0735c98503 100644 --- a/crates/bevy_core/src/lib.rs +++ b/crates/bevy_core/src/lib.rs @@ -57,11 +57,29 @@ fn register_math_types(app: &mut App) { .register_type::() .register_type::() .register_type::() + .register_type::() + .register_type::() + .register_type::() + .register_type::() + .register_type::() + .register_type::() + .register_type::() + .register_type::() .register_type::() .register_type::() + .register_type::() .register_type::() + .register_type::() + .register_type::() + .register_type::() + .register_type::() + .register_type::() + .register_type::() + .register_type::() .register_type::() .register_type::() + .register_type::() .register_type::() + .register_type::() .register_type::(); }