diff --git a/src/cameras/OrthographicCamera.js b/src/cameras/OrthographicCamera.js index ff2d85ca20ad1d72d17da9842e79b1834e6904c3..a8461fc47be5874c5eeff75bfc4bfccef0fbb567 100644 --- a/src/cameras/OrthographicCamera.js +++ b/src/cameras/OrthographicCamera.js @@ -36,17 +36,17 @@ THREE.OrthographicCamera.prototype.updateProjectionMatrix = function () { }; -THREE.OrthographicCamera.prototype.clone = function () { - - var camera = new this.constructor( this.left, this.right, this.top, this.bottom, this.near, this.far ); - return camera.copy( this ); - -}; - THREE.OrthographicCamera.prototype.copy = function ( source ) { THREE.Camera.prototype.copy.call( this, source ); + this.left = source.left; + this.right = source.right; + this.top = source.top; + this.bottom = source.bottom; + this.near = source.near; + this.far = source.far; + this.zoom = source.zoom; return this; diff --git a/src/cameras/PerspectiveCamera.js b/src/cameras/PerspectiveCamera.js index 632f74f6da990a2812d7c68c464e68429a3a4a6d..a7fe40165e9a39070b6b90638c0ed99c598b64d1 100644 --- a/src/cameras/PerspectiveCamera.js +++ b/src/cameras/PerspectiveCamera.js @@ -122,17 +122,15 @@ THREE.PerspectiveCamera.prototype.updateProjectionMatrix = function () { }; -THREE.PerspectiveCamera.prototype.clone = function () { - - var camera = new this.constructor( this.fov, this.aspect, this.near, this.far ); - return camera.copy( this ); - -}; - THREE.PerspectiveCamera.prototype.copy = function ( source ) { THREE.Camera.prototype.copy.call( this, source ); + this.fov = source.fov; + this.aspect = source.aspect; + this.near = source.near; + this.far = source.far; + this.zoom = source.zoom; return this;