提交 9af2e22a 编写于 作者: P prafullit

projectionMatrix.copy() not needed.

THREE.Camera.prototype.clone.call( this, camera ) will copy projectionMatrix also. So no need to copy it again.
上级 9b74e642
......@@ -52,8 +52,6 @@ THREE.OrthographicCamera.prototype.clone = function () {
camera.near = this.near;
camera.far = this.far;
camera.projectionMatrix.copy( this.projectionMatrix );
return camera;
};
......@@ -61,6 +59,7 @@ THREE.OrthographicCamera.prototype.toJSON = function ( meta ) {
var data = THREE.Object3D.prototype.toJSON.call( this, meta );
data.object.zoom = this.zoom;
data.object.left = this.left;
data.object.right = this.right;
data.object.top = this.top;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册