Merge fix
This commit is contained in:
parent
e3f3410e1a
commit
c3dd6dbe89
1 changed files with 7 additions and 0 deletions
|
@ -79,6 +79,13 @@ struct AxisBools {
|
|||
y: bool,
|
||||
}
|
||||
|
||||
impl AxisBools {
|
||||
#[inline]
|
||||
pub fn any(&self) -> bool {
|
||||
self.x || self.y
|
||||
}
|
||||
}
|
||||
|
||||
impl From<bool> for AxisBools {
|
||||
fn from(val: bool) -> Self {
|
||||
AxisBools { x: val, y: val }
|
||||
|
|
Loading…
Reference in a new issue