提交 c4eef2e2 编写于 作者: M Mr.doob 提交者: GitHub

DaydreamController: Fixed null check.

上级 b1f7a8af
......@@ -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 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册