check if motioncontrollerdata is valid
This commit is contained in:
@@ -230,7 +230,7 @@ void USGWristTrackerComponent::FImpl::UpdateWristTrackingData() const
|
||||
{
|
||||
FXRMotionControllerData MotionControllerData;
|
||||
const bool bGotMotionControllerData = Owner->GetMotionControllerData(MotionControllerData);
|
||||
if (bGotMotionControllerData)
|
||||
if (bGotMotionControllerData && MotionControllerData.bValid)
|
||||
{
|
||||
const bool bDeviceVisualTypeUpdated = Owner->DeviceVisualType != MotionControllerData.DeviceVisualType;
|
||||
if (bDeviceVisualTypeUpdated)
|
||||
|
||||
Reference in New Issue
Block a user