Explorar el Código

use interleavedBufferAttribute.count insteadof data.count

06wj hace 7 años
padre
commit
02f52e0ee3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/renderers/webgl/WebGLBufferRenderer.js

+ 1 - 1
src/renderers/webgl/WebGLBufferRenderer.js

@@ -35,7 +35,7 @@ function WebGLBufferRenderer( gl, extensions, info ) {
 
 		if ( position.isInterleavedBufferAttribute ) {
 
-			count = position.data.count;
+			count = position.count;
 
 			extension.drawArraysInstancedANGLE( mode, 0, count, geometry.maxInstancedCount );