|
@@ -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 () {
|
|
clone: function () {
|
|
|
|
|
|
- return new this.constructor().copy( this );
|
|
|
|
|
|
+ return new this.constructor( this.geometry, this.material ).copy( this );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|