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