Skip to content

Commit

Permalink
fix: schedule properly axis construction
Browse files Browse the repository at this point in the history
This avoids races between building the axes and replotting
the histograms after a different map is loaded
  • Loading branch information
carrascomj committed Oct 20, 2023
1 parent faf7644 commit 33cd6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aesthetics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}
Expand Down

0 comments on commit 33cd6b7

Please sign in to comment.