From 4ea35f8a67b3e8b379c1e4cf89ba6bcc707c8983 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 24 Apr 2024 05:05:31 +0200 Subject: [PATCH] fix selectagon flicker for good --- src/hud.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/hud.rs b/src/hud.rs index 38688d6..046d970 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -76,7 +76,6 @@ impl Plugin for HudPlugin { #[derive(Component)] struct Reticule; #[derive(Component)] pub struct ToggleableHudElement; #[derive(Component)] pub struct ToggleableHudMapElement; -#[derive(Component)] struct OnlyHideWhenTogglingHud; #[derive(Component)] struct Selectagon; #[derive(Component)] pub struct IsTargeted; #[derive(Component)] pub struct PointOfInterestMarker(pub Entity); @@ -360,8 +359,6 @@ fn setup( // Selectagon let mut entitycmd = commands.spawn(( Selectagon, - ToggleableHudElement, - OnlyHideWhenTogglingHud, SpatialBundle { visibility: Visibility::Hidden, ..default()