Skip to content

Commit

Permalink
skip check change tick for apply_deferred systems (#8760)
Browse files Browse the repository at this point in the history
# Objective

- Fixes #8410

## Solution

- Skip the check that produces the warning for apply_buffers systems.

---

## Changelog

- skip check_change_ticks for apply_buffers systems.
  • Loading branch information
hymm authored Jun 6, 2023
1 parent 8b9d88f commit 0a90bac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/bevy_ecs/src/schedule/schedule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ impl Schedule {
/// This prevents overflow and thus prevents false positives.
pub(crate) fn check_change_ticks(&mut self, change_tick: Tick) {
for system in &mut self.executable.systems {
system.check_change_tick(change_tick);
if !is_apply_deferred(system) {
system.check_change_tick(change_tick);
}
}

for conditions in &mut self.executable.system_conditions {
Expand Down

0 comments on commit 0a90bac

Please sign in to comment.