2
0
Эх сурвалжийг харах

Remove unneeded copy function

Garrett Johnson 5 жил өмнө
parent
commit
9d018e0a46

+ 0 - 20
examples/js/lines/LineMaterial.js

@@ -373,23 +373,3 @@ THREE.LineMaterial.prototype.constructor = THREE.LineMaterial;
 
 THREE.LineMaterial.prototype.isLineMaterial = true;
 
-THREE.LineMaterial.prototype.copy = function ( source ) {
-
-	THREE.ShaderMaterial.prototype.copy.call( this, source );
-
-	this.color.copy( source.color );
-
-	this.linewidth = source.linewidth;
-
-	this.dashScale = source.dashScale;
-
-	this.dashSize = source.dashSize;
-
-	this.gapSize = source.gapSize;
-
-	this.resolution = source.resolution;
-
-	return this;
-
-};
-

+ 0 - 20
examples/jsm/lines/LineMaterial.js

@@ -381,25 +381,5 @@ LineMaterial.prototype.constructor = LineMaterial;
 
 LineMaterial.prototype.isLineMaterial = true;
 
-LineMaterial.prototype.copy = function ( source ) {
-
-	ShaderMaterial.prototype.copy.call( this, source );
-
-	this.color.copy( source.color );
-
-	this.linewidth = source.linewidth;
-
-	this.dashScale = source.dashScale;
-
-	this.dashSize = source.dashSize;
-
-	this.gapSize = source.gapSize;
-
-	this.resolution = source.resolution;
-
-	return this;
-
-};
-
 
 export { LineMaterial };