瀏覽代碼

fix index -> start

Ben Adams 10 年之前
父節點
當前提交
b4575e143d
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/renderers/WebGLRenderer.js

+ 3 - 3
src/renderers/WebGLRenderer.js

@@ -1212,13 +1212,13 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 					} else {
 
-						_gl.drawArrays( mode, offsets[i].index, offsets[i].count );
+						_gl.drawArrays( mode, offsets[ i ].start, offsets[i].count );
 
 					}
 
 					_this.info.render.calls++;
-					_this.info.render.vertices += offsets[i].count - offsets[i].index;
-					_this.info.render.faces += ( offsets[i].count - offsets[i].index ) / 3;
+					_this.info.render.vertices += offsets[ i ].count - offsets[ i ].start;
+					_this.info.render.faces += ( offsets[ i ].count - offsets[ i ].start ) / 3;
 
 				}
 			}