Skip to content

Commit 86a66a0

Browse files
tschwmrdoob
authored andcommitted
Renderer: Fixed indexed buffer rendering.
1 parent a48f245 commit 86a66a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderers/WebGLRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -809,7 +809,7 @@ THREE.WebGLRenderer = function ( parameters ) {
809809

810810
if ( index !== null ) {
811811

812-
count = index.count;
812+
count = index.array.length;
813813

814814
} else if ( position instanceof THREE.InterleavedBufferAttribute ) {
815815

0 commit comments

Comments
 (0)