浏览代码

CircleBufferGeometry: Clean up.

Mr.doob 9 年之前
父节点
当前提交
a0217dbd87
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/extras/geometries/CircleBufferGeometry.js

+ 1 - 3
src/extras/geometries/CircleBufferGeometry.js

@@ -50,9 +50,7 @@ THREE.CircleBufferGeometry = function ( radius, segments, thetaStart, thetaLengt
 
 
 	for ( var i = 1; i <= segments; i ++ ) {
 	for ( var i = 1; i <= segments; i ++ ) {
 
 
-		indices.push( i );
-		indices.push( i + 1 );
-		indices.push( 0 );
+		indices.push( i, i + 1, 0 );
 
 
 	}
 	}