bevy/crates/bevy_app/src
Edgar Geier d3e426e86f Use default schedule consistently in add_state (#7751)
# Objective

When working on #7750 I noticed that `CoreSchedule::Main` was explicitly used to get the schedule for the `OnUpdate` set. This can lead to failures or weird behavior if `add_state` is used with a differently configured `default_schedule_label`, because the other systems are added to the default schedule. This PR fixes that.

## Solution

Use `default_schedule_label` to retrieve a single schedule to which all systems are added.
2023-02-20 22:06:34 +00:00
..
app.rs Use default schedule consistently in add_state (#7751) 2023-02-20 22:06:34 +00:00
ci_testing.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
lib.rs Make StartupSet a base set (#7574) 2023-02-19 03:10:06 +00:00
plugin_group.rs Unique plugin (#6411) 2022-10-31 16:12:19 +00:00
plugin.rs Mention uniqueness check in plugin name method docs (#7554) 2023-02-07 22:40:22 +00:00
schedule_runner.rs Rename schedule v3 to schedule (#7519) 2023-02-06 18:44:40 +00:00