pull changes from webxr-refactor

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2024-06-05 00:32:38 +02:00
6 changed files with 60 additions and 33 deletions

View File

@@ -40,7 +40,7 @@ fn spawn_default_hands(
session: Res<OxrSession>,
root: Query<Entity, With<OxrTrackingRoot>>,
) {
dbg!("spawning default hands");
debug!("spawning default hands");
let Ok(root) = root.get_single() else {
error!("unable to get tracking root, skipping hand creation");
return;
@@ -118,7 +118,7 @@ fn clean_up_default_hands(
query: Query<Entity, Or<(With<DefaultHandTracker>, With<DefaultHandBone>)>>,
) {
for e in &query {
dbg!("removing default hand entity");
debug!("removing default hand entity");
cmds.entity(e).despawn_recursive();
}
}