From 2bd0a452b7a7a19029b7e6630f9d854281a53685 Mon Sep 17 00:00:00 2001 From: carrascomj Date: Mon, 27 Nov 2023 11:00:36 +0100 Subject: [PATCH] fix: show reaction controls in Settings even if only boxes are added --- src/aesthetics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/aesthetics.rs b/src/aesthetics.rs index 17a9e47..f9faa5a 100644 --- a/src/aesthetics.rs +++ b/src/aesthetics.rs @@ -861,11 +861,11 @@ fn follow_the_axes( fn activate_settings( ui_state: ResMut, mut active_data: ResMut, - arrows: Query<(&Aesthetics, &Point), With>, + arrows_or_boxes: Query<(&Aesthetics, &Point), Or<(With, With)>>, circles: Query<(&Aesthetics, &Point), With>, hists: Query<(&Aesthetics, &GeomHist), With>>, ) { - active_data.arrow = arrows + active_data.arrow = arrows_or_boxes .iter() // this works because data without a condition should always be shown .any(|(aes, _)| {