@@ -20,7 +20,7 @@ function BufferAttribute( array, itemSize, normalized ) {
this.array = array;
this.itemSize = itemSize;
- this.count = array.length / itemSize;
+ this.count = array !== undefined ? array.length / itemSize : 0;
this.normalized = normalized === true;
this.dynamic = false;
@@ -10,7 +10,7 @@ function InterleavedBuffer( array, stride ) {
this.stride = stride;
- this.count = array.length / stride;
+ this.count = array !== undefined ? array.length / stride : 0;
this.updateRange = { offset: 0, count: - 1 };