Browse Source

projectionMatrix.copy() not needed.

THREE.Camera.prototype.clone.call( this, camera ) will copy projectionMatrix also. So no need to copy it again.
prafullit 10 years ago
parent
commit
9af2e22a7f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/cameras/OrthographicCamera.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;