use fixed-width integers

This commit is contained in:
Mamadou Babaei
2025-02-14 12:11:14 +01:00
parent f6df174a68
commit 664fdef477
@@ -1950,14 +1950,14 @@ bool FSGXRTracker::GetAllKeypointStates(
const FTransform& TrackingToWorldTransform{Pimpl->XRTrackingSystem->GetTrackingToWorldTransform()};
for (int i = 0; i < EHandKeypointCount; ++i)
for (int32 i = 0; i < EHandKeypointCount; ++i)
{
FTransform KeypointWorldTransform{HandState.KeypointTransforms[i] * TrackingToWorldTransform};
OutPositions.Add(KeypointWorldTransform.GetLocation());
OutRotations.Add(KeypointWorldTransform.GetRotation());
}
for (int i = 0; i < EHandKeypointCount; ++i)
for (int32 i = 0; i < EHandKeypointCount; ++i)
{
OutRadii.Add(HandState.Radii[i]);
}
@@ -2078,7 +2078,7 @@ bool FSGXRTracker::FImpl::UpdateXRHandTrackingData(
XR_HAND_JOINT_PALM_EXT == 0 && XR_HAND_JOINT_LITTLE_TIP_EXT == XR_HAND_JOINT_COUNT_EXT - 1,
"XrHandJointEXT enum is not as assumed for the following loop!");
for (int j = 0; j < XR_HAND_JOINT_COUNT_EXT; ++j)
for (int32 j = 0; j < XR_HAND_JOINT_COUNT_EXT; ++j)
{
const XrHandJointLocationEXT& JointLocation{OutHandState.JointLocations[j]};
const XrPosef& Pose{JointLocation.pose};