Skip to content

Commit

Permalink
Added reflect impl for Rhombus.
Browse files Browse the repository at this point in the history
  • Loading branch information
Olle-Lukowski committed May 26, 2024
1 parent 4f480ed commit 82849ae
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/bevy_math/src/primitives/dim2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -962,6 +962,15 @@ impl Measured2d for Annulus {
/// A rhombus primitive, also known as a diamond shape.
#[derive(Clone, Copy, Debug, PartialEq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
#[cfg_attr(
feature = "bevy_reflect",
derive(bevy_reflect::Reflect),
reflect(Debug, PartialEq)
)]
#[cfg_attr(
all(feature = "serialize", feature = "bevy_reflect"),
reflect(Serialize, Deserialize)
)]
#[doc(alias = "Diamond")]
pub struct Rhombus {
/// Size of the horizontal and vertical diagonals of the rhombus
Expand Down

0 comments on commit 82849ae

Please sign in to comment.