perform a ensure before dereferencing
This commit is contained in:
@@ -1694,6 +1694,11 @@ bool FSGXRTracker::FImpl::GetWristTransform(const bool bRight, FTransform& OutTr
|
|||||||
const FName& MotionSource{
|
const FName& MotionSource{
|
||||||
GetEControllerHandEnumName(PositionalTrackingHardwareHand)
|
GetEControllerHandEnumName(PositionalTrackingHardwareHand)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (!ensureAlwaysMsgf(XRTrackingSystem, TEXT("Invalid XR tracking system!")))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
const float WorldToMetersScale = XRTrackingSystem->GetWorldToMetersScale();
|
const float WorldToMetersScale = XRTrackingSystem->GetWorldToMetersScale();
|
||||||
|
|
||||||
bool bMotionSourceHandTracking = false;
|
bool bMotionSourceHandTracking = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user