提交 06eb8c06 编写于 作者: M Mr.doob

WebGLObjects: Fixed TypeArray check.

上级 db30ac4c
......@@ -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' );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册