From 667c6092a790f0f8d9b5ac29099577c289554eec Mon Sep 17 00:00:00 2001 From: ForTehLose Date: Tue, 3 Sep 2024 20:14:48 -0400 Subject: [PATCH] changed to spatial bundle default --- crates/bevy_xr_utils/src/tracking_utils.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/bevy_xr_utils/src/tracking_utils.rs b/crates/bevy_xr_utils/src/tracking_utils.rs index bcd9688..c9db21c 100644 --- a/crates/bevy_xr_utils/src/tracking_utils.rs +++ b/crates/bevy_xr_utils/src/tracking_utils.rs @@ -254,9 +254,9 @@ fn spawn_tracking_rig( .create_reference_space(openxr::ReferenceSpaceType::VIEW, Transform::IDENTITY) .unwrap(); let head = cmds - .spawn((SpatialBundle { ..default() }, HeadXRSpace(head_space))) + .spawn((SpatialBundle::default(), HeadXRSpace(head_space))) .id(); - let local_floor = cmds.spawn((SpatialBundle { ..default() }, LocalFloor)).id(); + let local_floor = cmds.spawn((SpatialBundle::default(), LocalFloor)).id(); let left_space = session .create_action_space(&actions.left, openxr::Path::NULL, XrPose::IDENTITY) @@ -265,10 +265,10 @@ fn spawn_tracking_rig( .create_action_space(&actions.right, openxr::Path::NULL, XrPose::IDENTITY) .unwrap(); let left = cmds - .spawn((SpatialBundle { ..default() }, left_space, LeftGrip)) + .spawn((SpatialBundle::default(), left_space, LeftGrip)) .id(); let right = cmds - .spawn((SpatialBundle { ..default() }, right_space, RightGrip)) + .spawn((SpatialBundle::default(), right_space, RightGrip)) .id(); cmds.entity(root.single())