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

Revert "Line: fix copy and clone methods"

上级 53493850
......@@ -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.
先完成此消息的编辑!
想要评论请 注册