Skip to content

Commit

Permalink
Fix Layers derives
Browse files Browse the repository at this point in the history
  • Loading branch information
Jondolf committed Jan 24, 2024
1 parent 2c99e41 commit dbba9fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/layers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ pub struct CollisionLayers {
}

/// A bitmask for layers.
#[derive(Reflect, Clone, Copy, Component, Debug, PartialEq, Eq, PartialOrd, Ord)]
#[derive(Reflect, Clone, Copy, Debug, Deref, DerefMut, PartialEq, Eq, PartialOrd, Ord)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
pub struct Layers(pub u32);

impl From<u32> for Layers {
Expand Down

0 comments on commit dbba9fb

Please sign in to comment.