|
@@ -20,6 +20,7 @@ function BufferAttribute( array, itemSize, normalized ) {
|
|
|
|
|
|
this.array = array;
|
|
|
this.itemSize = itemSize;
|
|
|
+ this.count = array.length / itemSize;
|
|
|
this.normalized = normalized === true;
|
|
|
|
|
|
this.dynamic = false;
|
|
@@ -35,12 +36,6 @@ BufferAttribute.prototype = {
|
|
|
|
|
|
isBufferAttribute: true,
|
|
|
|
|
|
- get count() {
|
|
|
-
|
|
|
- return this.array.length / this.itemSize;
|
|
|
-
|
|
|
- },
|
|
|
-
|
|
|
set needsUpdate( value ) {
|
|
|
|
|
|
if ( value === true ) this.version ++;
|
|
@@ -59,6 +54,7 @@ BufferAttribute.prototype = {
|
|
|
|
|
|
this.array = new source.array.constructor( source.array );
|
|
|
this.itemSize = source.itemSize;
|
|
|
+ this.count = source.count;
|
|
|
this.normalized = source.normalized;
|
|
|
|
|
|
this.dynamic = source.dynamic;
|