Просмотр исходного кода

Revert "Line: fix copy and clone methods"

Mr.doob 6 лет назад
Родитель
Сommit
766bef1fe2
1 измененных файлов с 1 добавлено и 12 удалено
  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 );
 
 	}