Browse Source

fix groups in extrudebuffergeometry

gero3 8 years ago
parent
commit
294639a818
1 changed files with 3 additions and 5 deletions
  1. 3 5
      src/geometries/ExtrudeGeometry.js

+ 3 - 5
src/geometries/ExtrudeGeometry.js

@@ -641,11 +641,9 @@ ExtrudeBufferGeometry.prototype.addShape = function ( shape, options ) {
 
 		}
 		
-		if (options.extrudeMaterial !== undefined){
-			
-			scope.addGroup( start, verticesArray.length/3 -start, options.extrudeMaterial !== undefined ? options.extrudeMaterial : 1);
-			
-		}
+
+		scope.addGroup( start, verticesArray.length/3 -start, options.extrudeMaterial !== undefined ? options.extrudeMaterial : 1);
+
 
 	}