Fix ExclusiveSystemCoerced so it updates system with new archetypes

This commit is contained in:
Carter Anderson 2021-06-16 18:52:28 -07:00
parent 3400fb4e61
commit 579c769f7c

View file

@ -1,8 +1,4 @@
use crate::{
archetype::ArchetypeGeneration,
system::{check_system_change_tick, BoxedSystem, IntoSystem, SystemId},
world::World,
};
use crate::{archetype::ArchetypeGeneration, system::{check_system_change_tick, BoxedSystem, IntoSystem, System, SystemId}, world::World};
use std::borrow::Cow;
pub trait ExclusiveSystem: Send + Sync + 'static {
@ -96,7 +92,6 @@ impl ExclusiveSystem for ExclusiveSystemCoerced {
for archetype in archetypes.archetypes[archetype_index_range].iter() {
self.system.new_archetype(archetype);
}
self.system.run((), world);
self.system.apply_buffers(world);
}