rename some schedules and fix comments

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2024-07-15 19:03:11 +02:00
parent 1eed718860
commit 45fc44db5c
2 changed files with 10 additions and 10 deletions

View File

@@ -511,7 +511,7 @@ pub fn begin_xr_session(
.begin(openxr::ViewConfigurationType::PRIMARY_STEREO)
.expect("Failed to begin session");
world.get_resource_mut::<OxrSessionStarted>().unwrap().0 = true;
world.run_schedule(XrBeginSession);
world.run_schedule(XrPostSessionBegin);
}
pub fn end_xr_session(
@@ -519,7 +519,7 @@ pub fn end_xr_session(
// session: Res<OxrSession>, mut session_started: ResMut<OxrSessionStarted>
) {
// Maybe this could be an event?
world.run_schedule(XrEndSession);
world.run_schedule(XrPreSessionEnd);
let _span = info_span!("xr_end_session");
world
.get_resource::<OxrSession>()