Fix ExclusiveSystemCoerced so it updates system with new archetypes
This commit is contained in:
parent
3400fb4e61
commit
579c769f7c
@ -1,8 +1,4 @@
|
|||||||
use crate::{
|
use crate::{archetype::ArchetypeGeneration, system::{check_system_change_tick, BoxedSystem, IntoSystem, System, SystemId}, world::World};
|
||||||
archetype::ArchetypeGeneration,
|
|
||||||
system::{check_system_change_tick, BoxedSystem, IntoSystem, SystemId},
|
|
||||||
world::World,
|
|
||||||
};
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
|
||||||
pub trait ExclusiveSystem: Send + Sync + 'static {
|
pub trait ExclusiveSystem: Send + Sync + 'static {
|
||||||
@ -96,7 +92,6 @@ impl ExclusiveSystem for ExclusiveSystemCoerced {
|
|||||||
for archetype in archetypes.archetypes[archetype_index_range].iter() {
|
for archetype in archetypes.archetypes[archetype_index_range].iter() {
|
||||||
self.system.new_archetype(archetype);
|
self.system.new_archetype(archetype);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.system.run((), world);
|
self.system.run((), world);
|
||||||
self.system.apply_buffers(world);
|
self.system.apply_buffers(world);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user