未验证 提交 eb8f5cb0 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #15981 from mrdoob/revert-15062-dev-line_clone_copy

Revert "Line: fix copy and clone methods"
......@@ -244,20 +244,9 @@ Line.prototype = Object.assign( Object.create( Object3D.prototype ), {
}() ),
copy: function ( source ) {
Object3D.prototype.copy.call( this, source );
this.geometry.copy( source.geometry );
this.material.copy( source.material );
return this;
},
clone: function () {
return new this.constructor().copy( this );
return new this.constructor( this.geometry, this.material ).copy( this );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册