Skip to content

Commit

Permalink
fix: show reaction controls in Settings even if only boxes are added
Browse files Browse the repository at this point in the history
  • Loading branch information
carrascomj committed Nov 27, 2023
1 parent e275b04 commit 2bd0a45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aesthetics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -861,11 +861,11 @@ fn follow_the_axes(
fn activate_settings(
ui_state: ResMut<UiState>,
mut active_data: ResMut<ActiveData>,
arrows: Query<(&Aesthetics, &Point<f32>), With<GeomArrow>>,
arrows_or_boxes: Query<(&Aesthetics, &Point<f32>), Or<(With<GeomArrow>, With<GeomHist>)>>,
circles: Query<(&Aesthetics, &Point<f32>), With<GeomMetabolite>>,
hists: Query<(&Aesthetics, &GeomHist), With<Distribution<f32>>>,
) {
active_data.arrow = arrows
active_data.arrow = arrows_or_boxes
.iter()
// this works because data without a condition should always be shown
.any(|(aes, _)| {
Expand Down

0 comments on commit 2bd0a45

Please sign in to comment.