skip check change tick for apply_deferred systems (#8760)

# Objective

- Fixes https://github.com/bevyengine/bevy/issues/8410

## Solution

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

---

## Changelog

- skip check_change_ticks for apply_buffers systems.
This commit is contained in:
Mike 2023-06-06 12:47:07 -07:00 committed by GitHub
parent 8b9d88f4d0
commit 0a90bac4f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,8 +271,10 @@ 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 {
if !is_apply_deferred(system) {
system.check_change_tick(change_tick);
}
}
for conditions in &mut self.executable.system_conditions {
for system in conditions.iter_mut() {