cargo fmt and removed the unessecary examples.

This commit is contained in:
MalekiRe
2024-05-29 16:30:15 -07:00
committed by Malek
parent 1d27157142
commit ec16d9a254
13 changed files with 59 additions and 72 deletions

View File

@@ -14,10 +14,14 @@ impl Plugin for OxrActionAttachingPlugin {
fn attach_sets(session: Res<OxrSession>, mut events: EventReader<OxrAttachActionSet>) {
let sets = events.read().map(|v| &v.0).collect::<Vec<_>>();
if sets.is_empty() {return;}
if sets.is_empty() {
return;
}
info!("attaching {} sessions", sets.len());
match session.attach_action_sets(&sets) {
Ok(_) => {info!("attached sessions!")}
Ok(_) => {
info!("attached sessions!")
}
Err(openxr::sys::Result::ERROR_ACTIONSETS_ALREADY_ATTACHED) => {
error!("Action Sets Already attached!");
}