From 355194cd4213a8de97b49b218da57355b44acf8e Mon Sep 17 00:00:00 2001 From: Imanol Fernandez Date: Fri, 17 Apr 2020 22:16:10 +0000 Subject: [PATCH] Bug 1631113 - Do not check the position cap to assign local floor height r=kip,daoshengmu Differential Revision: https://phabricator.services.mozilla.com/D71409 --- dom/vr/XRNativeOriginLocalFloor.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/dom/vr/XRNativeOriginLocalFloor.cpp b/dom/vr/XRNativeOriginLocalFloor.cpp index 8fd08bc9a20c..a7bf8ad01bb6 100644 --- a/dom/vr/XRNativeOriginLocalFloor.cpp +++ b/dom/vr/XRNativeOriginLocalFloor.cpp @@ -30,13 +30,11 @@ gfx::PointDouble3D XRNativeOriginLocalFloor::GetPosition() { if (!mInitialPositionValid || standing != mStandingTransform) { const gfx::VRHMDSensorState& sensorState = mDisplay->GetSensorState(); gfx::PointDouble3D origin; - if (sensorState.flags & VRDisplayCapabilityFlags::Cap_Position) { - mInitialPosition.x = sensorState.pose.position[0]; - mInitialPosition.y = -mFloorRandom - standing._42; - mInitialPosition.z = sensorState.pose.position[2]; - mInitialPositionValid = true; - mStandingTransform = standing; - } + mInitialPosition.x = sensorState.pose.position[0]; + mInitialPosition.y = -mFloorRandom - standing._42; + mInitialPosition.z = sensorState.pose.position[2]; + mInitialPositionValid = true; + mStandingTransform = standing; } return mInitialPosition; }