|
@@ -244,9 +244,20 @@ 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( this.geometry, this.material ).copy( this );
|
|
|
+ return new this.constructor().copy( this );
|
|
|
|
|
|
}
|
|
|
|