浏览代码

fix groups in extrudebuffergeometry

gero3 8 年之前
父节点
当前提交
294639a818
共有 1 个文件被更改,包括 3 次插入5 次删除
  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);
+
 
 	}