Browse Source

Renderer: Fixed indexed buffer rendering.

tschw 10 years ago
parent
commit
86a66a0e67
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/renderers/WebGLRenderer.js

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -809,7 +809,7 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 			if ( index !== null ) {
 
-				count = index.count;
+				count = index.array.length;
 
 			} else if ( position instanceof THREE.InterleavedBufferAttribute ) {