From 7abe8e2bfc67daecb24ae665962d4f641ae2f9a2 Mon Sep 17 00:00:00 2001 From: devil-ira Date: Fri, 15 Jul 2022 10:56:51 +0200 Subject: [PATCH] Mat2 exported and registered. --- crates/bevy_core/src/lib.rs | 1 + crates/bevy_math/src/lib.rs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/bevy_core/src/lib.rs b/crates/bevy_core/src/lib.rs index 7c7d193564f87..41b8e02d4935e 100644 --- a/crates/bevy_core/src/lib.rs +++ b/crates/bevy_core/src/lib.rs @@ -56,6 +56,7 @@ fn register_math_types(app: &mut App) { .register_type::() .register_type::() .register_type::() + .register_type::() .register_type::() .register_type::() .register_type::(); diff --git a/crates/bevy_math/src/lib.rs b/crates/bevy_math/src/lib.rs index 32e736edb89b7..e31af6fbc0373 100644 --- a/crates/bevy_math/src/lib.rs +++ b/crates/bevy_math/src/lib.rs @@ -1,7 +1,7 @@ //! Provides math types and functionality for the Bevy game engine. //! //! The commonly used types are vectors like [`Vec2`] and [`Vec3`], -//! matrices like [`Mat3`] and [`Mat4`] and orientation representations +//! matrices like [`Mat2`], [`Mat3`] and [`Mat4`] and orientation representations //! like [`Quat`]. #![warn(missing_docs)] @@ -10,8 +10,8 @@ pub mod prelude { #[doc(hidden)] pub use crate::{ - BVec2, BVec3, BVec4, EulerRot, IVec2, IVec3, IVec4, Mat3, Mat4, Quat, UVec2, UVec3, UVec4, - Vec2, Vec3, Vec4, + BVec2, BVec3, BVec4, EulerRot, IVec2, IVec3, IVec4, Mat2, Mat3, Mat4, Quat, UVec2, UVec3, + UVec4, Vec2, Vec3, Vec4, }; }