diff --git a/crates/bevy_math/src/cubic_splines.rs b/crates/bevy_math/src/cubic_splines.rs index ac40b046423ce..c1399b4c4c480 100644 --- a/crates/bevy_math/src/cubic_splines.rs +++ b/crates/bevy_math/src/cubic_splines.rs @@ -6,6 +6,9 @@ use crate::{Vec2, VectorSpace}; use thiserror::Error; +#[cfg(feature = "reflect")] +use bevy_reflect::prelude::*; + /// A spline composed of a single cubic Bezier curve. /// /// Useful for user-drawn curves with local control, or animation easing. See diff --git a/crates/bevy_math/src/rects/irect.rs b/crates/bevy_math/src/rects/irect.rs index f108050b9bcfa..bda6d83363481 100644 --- a/crates/bevy_math/src/rects/irect.rs +++ b/crates/bevy_math/src/rects/irect.rs @@ -1,5 +1,8 @@ use crate::{IVec2, Rect, URect}; +#[cfg(feature = "reflect")] +use bevy_reflect::prelude::*; + /// A rectangle defined by two opposite corners. /// /// The rectangle is axis aligned, and defined by its minimum and maximum coordinates, diff --git a/crates/bevy_math/src/rects/rect.rs b/crates/bevy_math/src/rects/rect.rs index beee5456050c5..fc9671e2189f8 100644 --- a/crates/bevy_math/src/rects/rect.rs +++ b/crates/bevy_math/src/rects/rect.rs @@ -1,5 +1,8 @@ use crate::{IRect, URect, Vec2}; +#[cfg(feature = "reflect")] +use bevy_reflect::prelude::*; + /// A rectangle defined by two opposite corners. /// /// The rectangle is axis aligned, and defined by its minimum and maximum coordinates, diff --git a/crates/bevy_math/src/rects/urect.rs b/crates/bevy_math/src/rects/urect.rs index 2fc4e6009421e..4cf16b4ad558a 100644 --- a/crates/bevy_math/src/rects/urect.rs +++ b/crates/bevy_math/src/rects/urect.rs @@ -1,5 +1,8 @@ use crate::{IRect, Rect, UVec2}; +#[cfg(feature = "reflect")] +use bevy_reflect::prelude::*; + /// A rectangle defined by two opposite corners. /// /// The rectangle is axis aligned, and defined by its minimum and maximum coordinates,