Skip to content

Commit

Permalink
Fix particle len sync ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Masterchef365 committed Mar 5, 2024
1 parent 19f6c7f commit 4dddc10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ impl TemplateApp {
color: self.source_color_idx,
});
}
self.n_particles = self.sim.particles.len();

if self.well {
for part in &mut self.sim.particles {
Expand Down

0 comments on commit 4dddc10

Please sign in to comment.