mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
legion: backport upstream legion archetype filter fix
This commit is contained in:
parent
2f5f6e017a
commit
99bc2d0ea7
1 changed files with 1 additions and 2 deletions
|
@ -380,9 +380,8 @@ pub struct FilterArchIter<'a, 'b, F: Filter<ArchetypeFilterData<'a>>> {
|
|||
|
||||
impl<'a, 'b, F: Filter<ArchetypeFilterData<'a>>> Iterator for FilterArchIter<'a, 'b, F> {
|
||||
type Item = ArchetypeIndex;
|
||||
|
||||
fn next(&mut self) -> Option<Self::Item> {
|
||||
if let Some((i, data)) = self.archetypes.next() {
|
||||
while let Some((i, data)) = self.archetypes.next() {
|
||||
if self.filter.is_match(&data).is_pass() {
|
||||
return Some(ArchetypeIndex(i));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue