mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 12:43:34 +00:00
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.
This commit is contained in:
parent
3817afc1f4
commit
3d194a2160
1 changed files with 18 additions and 0 deletions
|
@ -57,11 +57,29 @@ fn register_math_types(app: &mut App) {
|
|||
.register_type::<bevy_math::UVec2>()
|
||||
.register_type::<bevy_math::UVec3>()
|
||||
.register_type::<bevy_math::UVec4>()
|
||||
.register_type::<bevy_math::DVec2>()
|
||||
.register_type::<bevy_math::DVec3>()
|
||||
.register_type::<bevy_math::DVec4>()
|
||||
.register_type::<bevy_math::BVec2>()
|
||||
.register_type::<bevy_math::BVec3>()
|
||||
.register_type::<bevy_math::BVec3A>()
|
||||
.register_type::<bevy_math::BVec4>()
|
||||
.register_type::<bevy_math::BVec4A>()
|
||||
.register_type::<bevy_math::Vec2>()
|
||||
.register_type::<bevy_math::Vec3>()
|
||||
.register_type::<bevy_math::Vec3A>()
|
||||
.register_type::<bevy_math::Vec4>()
|
||||
.register_type::<bevy_math::DAffine2>()
|
||||
.register_type::<bevy_math::DAffine3>()
|
||||
.register_type::<bevy_math::Affine2>()
|
||||
.register_type::<bevy_math::Affine3A>()
|
||||
.register_type::<bevy_math::DMat2>()
|
||||
.register_type::<bevy_math::DMat3>()
|
||||
.register_type::<bevy_math::DMat4>()
|
||||
.register_type::<bevy_math::Mat2>()
|
||||
.register_type::<bevy_math::Mat3>()
|
||||
.register_type::<bevy_math::Mat3A>()
|
||||
.register_type::<bevy_math::Mat4>()
|
||||
.register_type::<bevy_math::DQuat>()
|
||||
.register_type::<bevy_math::Quat>();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue