From 48f78468c9ad0c2730fa352eac6846730f558175 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 13 May 2024 01:00:09 +0200 Subject: [PATCH] cleanup --- src/common.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 } }