浏览代码

Merge pull request #17798 from gkjohnson/remove-line-copy-override

Line2 Example: Remove copy function overrides
WestLangley 5 年之前
父节点
当前提交
ae16054e7f

+ 1 - 9
examples/js/lines/Line2.js

@@ -18,14 +18,6 @@ THREE.Line2.prototype = Object.assign( Object.create( THREE.LineSegments2.protot
 
 	constructor: THREE.Line2,
 
-	isLine2: true,
-
-	copy: function ( /* source */ ) {
-
-		// todo
-
-		return this;
-
-	}
+	isLine2: true
 
 } );

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

@@ -373,19 +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.resolution = source.resolution;
-
-	// todo
-
-	return this;
-
-};
-

+ 1 - 9
examples/js/lines/LineSegments2.js

@@ -52,14 +52,6 @@ THREE.LineSegments2.prototype = Object.assign( Object.create( THREE.Mesh.prototy
 
 		};
 
-	}() ),
-
-	copy: function ( /* source */ ) {
-
-		// todo
-
-		return this;
-
-	}
+	}() )
 
 } );

+ 0 - 14
examples/js/lines/LineSegmentsGeometry.js

@@ -239,20 +239,6 @@ THREE.LineSegmentsGeometry.prototype = Object.assign( Object.create( THREE.Insta
 
 		// todo
 
-	},
-
-	clone: function () {
-
-		// todo
-
-	},
-
-	copy: function ( /* source */ ) {
-
-		// todo
-
-		return this;
-
 	}
 
 } );

+ 1 - 9
examples/js/lines/Wireframe.js

@@ -52,14 +52,6 @@ THREE.Wireframe.prototype = Object.assign( Object.create( THREE.Mesh.prototype )
 
 		};
 
-	}() ),
-
-	copy: function ( /* source */ ) {
-
-		// todo
-
-		return this;
-
-	}
+	}() )
 
 } );

+ 1 - 9
examples/js/lines/WireframeGeometry2.js

@@ -19,14 +19,6 @@ THREE.WireframeGeometry2.prototype = Object.assign( Object.create( THREE.LineSeg
 
 	constructor: THREE.WireframeGeometry2,
 
-	isWireframeGeometry2: true,
-
-	copy: function ( /* source */ ) {
-
-		// todo
-
-		return this;
-
-	}
+	isWireframeGeometry2: true
 
 } );

+ 1 - 9
examples/jsm/lines/Line2.js

@@ -23,15 +23,7 @@ Line2.prototype = Object.assign( Object.create( LineSegments2.prototype ), {
 
 	constructor: Line2,
 
-	isLine2: true,
-
-	copy: function ( /* source */ ) {
-
-		// todo
-
-		return this;
-
-	}
+	isLine2: true
 
 } );
 

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

@@ -381,21 +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.resolution = source.resolution;
-
-	// todo
-
-	return this;
-
-};
-
 
 export { LineMaterial };

+ 1 - 9
examples/jsm/lines/LineSegments2.js

@@ -61,15 +61,7 @@ LineSegments2.prototype = Object.assign( Object.create( Mesh.prototype ), {
 
 		};
 
-	}() ),
-
-	copy: function ( /* source */ ) {
-
-		// todo
-
-		return this;
-
-	}
+	}() )
 
 } );
 

+ 0 - 14
examples/jsm/lines/LineSegmentsGeometry.js

@@ -250,20 +250,6 @@ LineSegmentsGeometry.prototype = Object.assign( Object.create( InstancedBufferGe
 
 		// todo
 
-	},
-
-	clone: function () {
-
-		// todo
-
-	},
-
-	copy: function ( /* source */ ) {
-
-		// todo
-
-		return this;
-
 	}
 
 } );

+ 1 - 9
examples/jsm/lines/Wireframe.js

@@ -61,15 +61,7 @@ Wireframe.prototype = Object.assign( Object.create( Mesh.prototype ), {
 
 		};
 
-	}() ),
-
-	copy: function ( /* source */ ) {
-
-		// todo
-
-		return this;
-
-	}
+	}() )
 
 } );
 

+ 1 - 9
examples/jsm/lines/WireframeGeometry2.js

@@ -24,15 +24,7 @@ WireframeGeometry2.prototype = Object.assign( Object.create( LineSegmentsGeometr
 
 	constructor: WireframeGeometry2,
 
-	isWireframeGeometry2: true,
-
-	copy: function ( /* source */ ) {
-
-		// todo
-
-		return this;
-
-	}
+	isWireframeGeometry2: true
 
 } );