2
0
Эх сурвалжийг харах

WebGLObjects: Fixed TypeArray check.

Mr.doob 10 жил өмнө
parent
commit
06eb8c06c2

+ 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' );