From 942f60a0f11f0aaca735954363e482325d88a87c Mon Sep 17 00:00:00 2001 From: Michael Hsu Date: Wed, 7 Dec 2022 13:11:19 -0800 Subject: [PATCH] call clear trackers on sub apps see #6878 --- crates/bevy_app/src/app.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_app/src/app.rs b/crates/bevy_app/src/app.rs index 0111e2e5b9a936..ad969a17c98f50 100644 --- a/crates/bevy_app/src/app.rs +++ b/crates/bevy_app/src/app.rs @@ -96,6 +96,7 @@ impl SubApp { /// run the `SubApp`'s schedule pub fn run(&mut self) { self.app.schedule.run(&mut self.app.world); + self.app.world.clear_trackers(); } /// extract data from main world to sub app