copy function should return the result to work
@@ -52,6 +52,8 @@ THREE.InterleavedBuffer.prototype = {
this.stride = source.stride;
this.dynamic = source.dynamic;
+ return this;
+
},
copyAt: function ( index1, attribute, index2 ) {
@@ -26,7 +26,7 @@ THREE.InterleavedBufferAttribute.prototype = {
get count() {
- return this.data.array.length / this.data.stride;
+ return this.data.count;