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

Pass geometry and material into super constructor

Jeff Pyke 4 жил өмнө
parent
commit
32c143f7d6

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

@@ -2,7 +2,7 @@ console.warn( "THREE.Line2: As part of the transition to ES6 Modules, the files
 
 THREE.Line2 = function ( geometry, material ) {
 
-	THREE.LineSegments2.call( this );
+	THREE.LineSegments2.call( this, geometry, material );
 
 	this.type = 'Line2';
 

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

@@ -2,7 +2,7 @@ console.warn( "THREE.LineSegments2: As part of the transition to ES6 Modules, th
 
 THREE.LineSegments2 = function ( geometry, material ) {
 
-	THREE.Mesh.call( this );
+	THREE.Mesh.call( this, geometry, material );
 
 	this.type = 'LineSegments2';
 

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

@@ -5,7 +5,7 @@ import { LineMaterial } from "../lines/LineMaterial.js";
 
 var Line2 = function ( geometry, material ) {
 
-	LineSegments2.call( this );
+	LineSegments2.call( this, geometry, material );
 
 	this.type = 'Line2';
 

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

@@ -13,7 +13,7 @@ import { LineMaterial } from "../lines/LineMaterial.js";
 
 var LineSegments2 = function ( geometry, material ) {
 
-	Mesh.call( this );
+	Mesh.call( this, geometry, material );
 
 	this.type = 'LineSegments2';