diff --git a/src/cameras/Camera.js b/src/cameras/Camera.js index 6d5501bf76d43a395e44241ac8f2f7ec70376be1..a91c330788b4b1aa9d2056f3ee6145460278c4df 100644 --- a/src/cameras/Camera.js +++ b/src/cameras/Camera.js @@ -26,9 +26,9 @@ Camera.prototype = Object.assign( Object.create( Object3D.prototype ), { isCamera: true, - copy: function ( source ) { + copy: function ( source, recursive ) { - Object3D.prototype.copy.call( this, source ); + Object3D.prototype.copy.call( this, source, recursive ); this.matrixWorldInverse.copy( source.matrixWorldInverse ); this.projectionMatrix.copy( source.projectionMatrix ); diff --git a/src/cameras/OrthographicCamera.js b/src/cameras/OrthographicCamera.js old mode 100644 new mode 100755 index b098810fc35dd03c07fee4e87eebd5c10d128f7d..d5b4dab2650b2ba0b42c9dc418c0c4a2cc7d2b8f --- a/src/cameras/OrthographicCamera.js +++ b/src/cameras/OrthographicCamera.js @@ -33,9 +33,9 @@ OrthographicCamera.prototype = Object.assign( Object.create( Camera.prototype ), isOrthographicCamera: true, - copy: function ( source ) { + copy: function ( source, recursive ) { - Camera.prototype.copy.call( this, source ); + Camera.prototype.copy.call( this, source, recursive ); this.left = source.left; this.right = source.right; diff --git a/src/cameras/PerspectiveCamera.js b/src/cameras/PerspectiveCamera.js old mode 100644 new mode 100755 index 3fb97ca4adb1ba8cbbfadd9b642dce5f0e6792db..8b48059d92ef6310e814ad7ebc67c25176378137 --- a/src/cameras/PerspectiveCamera.js +++ b/src/cameras/PerspectiveCamera.js @@ -38,9 +38,9 @@ PerspectiveCamera.prototype = Object.assign( Object.create( Camera.prototype ), isPerspectiveCamera: true, - copy: function ( source ) { + copy: function ( source, recursive ) { - Camera.prototype.copy.call( this, source ); + Camera.prototype.copy.call( this, source, recursive ); this.fov = source.fov; this.zoom = source.zoom;