Преглед на файлове

Pass geometry and material into super constructor

Jeff Pyke преди 4 години
родител
ревизия
32c143f7d6
променени са 4 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 1 1
      examples/js/lines/Line2.js
  2. 1 1
      examples/js/lines/LineSegments2.js
  3. 1 1
      examples/jsm/lines/Line2.js
  4. 1 1
      examples/jsm/lines/LineSegments2.js

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