Skip to content

Commit

Permalink
only insert ready circles in the queue
Browse files Browse the repository at this point in the history
some components are added in post_load, so if a circle doesn't yet have
them we don't want it in the process queue...

this avoids the panic in #155
  • Loading branch information
tomara-x committed May 1, 2024
1 parent a5804e2 commit b51ed80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::{
};

pub fn sort_by_order(
query: Query<(Entity, &Order)>,
query: Query<(Entity, &Order), With<Network>>,
mut queue: ResMut<Queue>,
) {
let mut max_order: usize = 1;
Expand Down

0 comments on commit b51ed80

Please sign in to comment.