提交 b7de83f2 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #11416 from tszyszko/dev

Camera.copy() recursive support
......@@ -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 );
......
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册