Browse Source

Merge pull request #6733 from prafullit/prafullit-projectionMatrix

projectionMatrix.copy() not needed.
Ricardo Cabello 10 years ago
parent
commit
21c9388416
2 changed files with 2 additions and 4 deletions
  1. 1 2
      src/cameras/OrthographicCamera.js
  2. 1 2
      src/cameras/PerspectiveCamera.js

+ 1 - 2
src/cameras/OrthographicCamera.js

@@ -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;

+ 1 - 2
src/cameras/PerspectiveCamera.js

@@ -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;