Explorar o código

WebGLObjects: Fixed TypeArray check.

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
06eb8c06c2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/renderers/webgl/WebGLObjects.js

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

@@ -258,7 +258,7 @@ THREE.WebGLObjects = function ( gl, properties, info ) {
 
 		console.timeEnd( 'wireframe' );
 
-		var TypeArray = position.array.length > 65535 ? Uint32Array : Uint16Array;
+		var TypeArray = position.count > 65535 ? Uint32Array : Uint16Array;
 		var attribute = new THREE.BufferAttribute( new TypeArray( indices ), 1 );
 
 		updateAttribute( attribute, 'wireframe' );