diff --git a/src/common.rs b/src/common.rs index bedcec5..12c47b4 100644 --- a/src/common.rs +++ b/src/common.rs @@ -13,21 +13,21 @@ use bevy::prelude::*; pub use bevy::math::{DVec3, DQuat}; +pub use std::f32::consts::PI as PI32; +pub use std::f64::consts::PI; pub const WINDOW_TITLE: &str = "OutFly"; pub const FONT: &str = "fonts/Yupiter-Regular.ttf"; -pub use std::f32::consts::PI as PI32; -pub use std::f64::consts::PI; pub const EPSILON32: f32 = 1e-9; pub const EPSILON: f64 = 1e-9; #[inline] -pub fn bool2vis(boolean: bool) -> bevy::prelude::Visibility { +pub fn bool2vis(boolean: bool) -> Visibility { if boolean { - bevy::prelude::Visibility::Inherited + Visibility::Inherited } else { - bevy::prelude::Visibility::Hidden + Visibility::Hidden } }