Explorar o código

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

Revert "Line: fix copy and clone methods"
Mr.doob %!s(int64=6) %!d(string=hai) anos
pai
achega
eb8f5cb0a7
Modificáronse 1 ficheiros con 1 adicións e 12 borrados
  1. 1 12
      src/objects/Line.js

+ 1 - 12
src/objects/Line.js

@@ -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 );
 
 	}