浏览代码

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

Revert "Line: fix copy and clone methods"
Mr.doob 6 年之前
父节点
当前提交
eb8f5cb0a7
共有 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 () {
 	clone: function () {
 
 
-		return new this.constructor().copy( this );
+		return new this.constructor( this.geometry, this.material ).copy( this );
 
 
 	}
 	}