提交 21c93884 编写于 作者: R Ricardo Cabello

Merge pull request #6733 from prafullit/prafullit-projectionMatrix

projectionMatrix.copy() not needed.
......@@ -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;
......
......@@ -135,8 +135,6 @@ THREE.PerspectiveCamera.prototype.clone = function () {
camera.near = this.near;
camera.far = this.far;
camera.projectionMatrix.copy( this.projectionMatrix );
return camera;
};
......@@ -145,6 +143,7 @@ THREE.PerspectiveCamera.prototype.toJSON = function ( meta ) {
var data = THREE.Object3D.prototype.toJSON.call( this, meta );
data.object.zoom = this.zoom;
data.object.fov = this.fov;
data.object.aspect = this.aspect;
data.object.near = this.near;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册