From 9b4e90ce30e87811cd0ec3590fe529c0514b53a9 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Wed, 27 Feb 2019 21:07:31 -0800 Subject: [PATCH] WebVRManager: Fixed getFrameData warning. --- src/renderers/webvr/WebVRManager.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/renderers/webvr/WebVRManager.js b/src/renderers/webvr/WebVRManager.js index 19e488a2a3aca0..e562cd844e4a05 100644 --- a/src/renderers/webvr/WebVRManager.js +++ b/src/renderers/webvr/WebVRManager.js @@ -234,7 +234,7 @@ function WebVRManager( renderer ) { var userHeight = frameOfReferenceType === 'stage' ? 1.6 : 0; - if ( device === null ) { + if ( isPresenting() === false ) { camera.position.set( 0, userHeight, 0 ); return camera; @@ -290,8 +290,6 @@ function WebVRManager( renderer ) { poseObject.updateMatrixWorld(); - if ( device.isPresenting === false ) return camera; - // cameraL.near = camera.near;