Showstoppers
@@ -66,6 +66,8 @@ THREE.BufferGeometry.prototype = {
console.warn( 'THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute.' );
this.setIndex( attribute );
+ return;
+
}
this.attributes[ name ] = attribute;
@@ -804,11 +804,7 @@ THREE.WebGLRenderer = function ( parameters ) {
if ( index !== null ) {
- count = index.count;
-
- } else if ( position instanceof THREE.InterleavedBufferAttribute ) {
- count = position.data.array.length / 3;
+ count = index.array.length;
} else {