@@ -84,9 +84,6 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
84
84
var extrudePath = options . extrudePath ;
85
85
var extrudePts , extrudeByPath = false ;
86
86
87
- var material = options . material ;
88
- var extrudeMaterial = options . extrudeMaterial ;
89
-
90
87
// Use default WorldUVGenerator if no UV generators are specified.
91
88
var uvgen = options . UVGenerator !== undefined ? options . UVGenerator : THREE . ExtrudeGeometry . WorldUVGenerator ;
92
89
@@ -629,7 +626,7 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
629
626
b += shapesOffset ;
630
627
c += shapesOffset ;
631
628
632
- scope . faces . push ( new THREE . Face3 ( a , b , c , null , null , material ) ) ;
629
+ scope . faces . push ( new THREE . Face3 ( a , b , c , null , null , 0 ) ) ;
633
630
634
631
var uvs = uvgen . generateTopUV ( scope , a , b , c ) ;
635
632
@@ -644,8 +641,8 @@ THREE.ExtrudeGeometry.prototype.addShape = function ( shape, options ) {
644
641
c += shapesOffset ;
645
642
d += shapesOffset ;
646
643
647
- scope . faces . push ( new THREE . Face3 ( a , b , d , null , null , extrudeMaterial ) ) ;
648
- scope . faces . push ( new THREE . Face3 ( b , c , d , null , null , extrudeMaterial ) ) ;
644
+ scope . faces . push ( new THREE . Face3 ( a , b , d , null , null , 1 ) ) ;
645
+ scope . faces . push ( new THREE . Face3 ( b , c , d , null , null , 1 ) ) ;
649
646
650
647
var uvs = uvgen . generateSideWallUV ( scope , a , b , c , d ) ;
651
648
0 commit comments