remove unnecessary log statements

This commit is contained in:
Schmarni
2024-02-22 10:28:34 +01:00
parent bc6f2639c1
commit adb8b13675
2 changed files with 1 additions and 6 deletions

View File

@@ -241,7 +241,7 @@ impl<G: xr::Graphics> SwapchainInner<G> {
}
None => {
bevy::log::info!("Rendering without pass through");
// bevy::log::info!("Rendering without pass through");
self.stream.lock().unwrap().end(
predicted_display_time,
environment_blend_mode,

View File

@@ -180,11 +180,9 @@ pub fn update_hand_bones(
error!("something is very wrong for hand_tracking!! doesn't have data for both hands!");
}
info!("hand_tracking");
bones
.par_iter_mut()
.for_each(|(mut transform, hand, bone, mut radius, mut status)| {
info!("hand_tracking bone before filter");
match (&hand, disabled_tracking.as_ref().map(|d| d.as_ref())) {
(Hand::Left, Some(DisableHandTracking::OnlyLeft)) => {
*status = BoneTrackingStatus::Emulated;
@@ -196,17 +194,14 @@ pub fn update_hand_bones(
}
_ => {}
}
info!("hand_tracking bone mid filter");
let bone_data = match (hand, &left_hand_data, &right_hand_data) {
(Hand::Left, Some(data), _) => data.get_joint(*bone),
(Hand::Right, _, Some(data)) => data.get_joint(*bone),
(hand, left_data, right_data) => {
info!("{:?},{:?},{:?}", hand, left_data, right_data);
*status = BoneTrackingStatus::Emulated;
return;
}
};
info!("hand_tracking bone after filter");
if *status == BoneTrackingStatus::Emulated {
*status = BoneTrackingStatus::Tracked;
}