Browse Source

Merge pull request #10947 from gero3/fixextrude2

fix groups in extrudebuffergeometry
Mr.doob 8 years ago
parent
commit
80db49a48d
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);
+
 
 
 	}
 	}