From 33cd6b7bdf816ec85eb0ac1c43a79f46252acf9b Mon Sep 17 00:00:00 2001 From: carrascomj Date: Fri, 20 Oct 2023 16:02:09 +0200 Subject: [PATCH] fix: schedule properly axis construction This avoids races between building the axes and replotting the histograms after a different map is loaded --- src/aesthetics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aesthetics.rs b/src/aesthetics.rs index b52a844..f056e9a 100644 --- a/src/aesthetics.rs +++ b/src/aesthetics.rs @@ -33,7 +33,7 @@ impl Plugin for AesPlugin { .add_systems(Update, filter_histograms) .add_systems(Update, follow_the_axes) // TODO: check since these were before load_map - .add_systems(Update, (build_axes, build_hover_axes, build_point_axes)) + .add_systems(PostUpdate, (build_axes, build_hover_axes, build_point_axes)) .add_systems(Update, (plot_side_hist, plot_hover_hist)) .add_systems(Update, (plot_side_box, change_color.before(plot_side_box))); }