未验证 提交 6b886653 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #15883 from Itee/webxrmanager-fix

WebXRManager: Remove old THREE call and add Matrix import statement
...@@ -8,6 +8,7 @@ import { ArrayCamera } from '../../cameras/ArrayCamera.js'; ...@@ -8,6 +8,7 @@ import { ArrayCamera } from '../../cameras/ArrayCamera.js';
import { PerspectiveCamera } from '../../cameras/PerspectiveCamera.js'; import { PerspectiveCamera } from '../../cameras/PerspectiveCamera.js';
import { WebGLAnimation } from '../webgl/WebGLAnimation.js'; import { WebGLAnimation } from '../webgl/WebGLAnimation.js';
import { setProjectionFromUnion } from './WebVRUtils.js'; import { setProjectionFromUnion } from './WebVRUtils.js';
import { Matrix4 } from '../../math/Matrix4';
function WebXRManager( renderer ) { function WebXRManager( renderer ) {
...@@ -303,7 +304,7 @@ function WebXRManager( renderer ) { ...@@ -303,7 +304,7 @@ function WebXRManager( renderer ) {
this.getStandingMatrix = function () { this.getStandingMatrix = function () {
console.warn( 'THREE.WebXRManager: getStandingMatrix() is no longer needed.' ); console.warn( 'THREE.WebXRManager: getStandingMatrix() is no longer needed.' );
return new THREE.Matrix4(); return new Matrix4();
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册