Explorar o código

Remove unneeded copy function

Garrett Johnson %!s(int64=5) %!d(string=hai) anos
pai
achega
9d018e0a46
Modificáronse 2 ficheiros con 0 adicións e 40 borrados
  1. 0 20
      examples/js/lines/LineMaterial.js
  2. 0 20
      examples/jsm/lines/LineMaterial.js

+ 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 };