From b51ed808be4109a81f63da04862c4b42c15de4e4 Mon Sep 17 00:00:00 2001 From: tomara_x <86204514+tomara-x@users.noreply.github.com> Date: Wed, 1 May 2024 17:04:36 +0300 Subject: [PATCH] only insert ready circles in the queue 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 --- src/process.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/process.rs b/src/process.rs index f9a955f..f1f0ea9 100644 --- a/src/process.rs +++ b/src/process.rs @@ -23,7 +23,7 @@ use crate::{ }; pub fn sort_by_order( - query: Query<(Entity, &Order)>, + query: Query<(Entity, &Order), With>, mut queue: ResMut, ) { let mut max_order: usize = 1;