2
0
Эх сурвалжийг харах

DaydreamController: Fixed null check.

Mr.doob 8 жил өмнө
parent
commit
c4eef2e2fe

+ 2 - 2
examples/js/vr/DaydreamController.js

@@ -53,10 +53,10 @@ THREE.DaydreamController = function () {
 
 		if ( gamepad !== undefined && gamepad.pose !== undefined ) {
 
-			if ( pose === null ) return; // no user action yet
-
 			var pose = gamepad.pose;
 
+			if ( pose === null ) return; // no user action yet
+
 			//  orientation
 
 			if ( pose.orientation !== null ) scope.quaternion.fromArray( pose.orientation );