Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix race condition on if EguiCtx is initialized before bones game (
#378) Speculative fix for #377 (see for context) It seems both the `setup_egui` and `step_bones_game` systems are gated by if assets are loaded, which is an async process. My theory is that assets finish loading after PreUpdate, before Update, so bones steps without EguiCtx. This prevents `step_bones_game` from being run until EguiCtx is inserted in `setup_egui`. ~~Becaues `setup_egui` is gated by assets loaded, `step_bones_game` is also implicitly gated by assets loaded. I only check one `run_if` condition to avoid overhead executing systems that make up the core game loop.~~
- Loading branch information