mirror of
https://github.com/bevyengine/bevy
synced 2025-02-16 14:08:32 +00:00
Fix ExclusiveSystemCoerced so it updates system with new archetypes
This commit is contained in:
parent
3400fb4e61
commit
579c769f7c
1 changed files with 1 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue