Skip to content

Commit

Permalink
Fix ExclusiveSystemCoerced so it updates system with new archetypes
Browse files Browse the repository at this point in the history
  • Loading branch information
cart committed Jul 24, 2021
1 parent 713c036 commit b6e1bfd
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions crates/bevy_ecs/src/system/exclusive_system.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit b6e1bfd

Please sign in to comment.