Browse Source

fix index -> start

Ben Adams 10 years ago
parent
commit
b4575e143d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/renderers/WebGLRenderer.js

+ 3 - 3
src/renderers/WebGLRenderer.js

@@ -1212,13 +1212,13 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 
 					} else {
 					} 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.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;
 
 
 				}
 				}
 			}
 			}