|
@@ -3,7 +3,7 @@ import { Vector3 } from '../math/Vector3.js';
|
|
|
|
|
|
class Face3 {
|
|
|
|
|
|
- constructor( a, b, c, normal, color, materialIndex ) {
|
|
|
+ constructor( a, b, c, normal, color, materialIndex = 0 ) {
|
|
|
|
|
|
this.a = a;
|
|
|
this.b = b;
|
|
@@ -15,7 +15,7 @@ class Face3 {
|
|
|
this.color = ( color && color.isColor ) ? color : new Color();
|
|
|
this.vertexColors = Array.isArray( color ) ? color : [];
|
|
|
|
|
|
- this.materialIndex = materialIndex !== undefined ? materialIndex : 0;
|
|
|
+ this.materialIndex = materialIndex;
|
|
|
|
|
|
}
|
|
|
|