|
@@ -1177,12 +1177,6 @@ Object.assign( BufferAttribute.prototype, {
|
|
},
|
|
},
|
|
setArray: function ( array ) {
|
|
setArray: function ( array ) {
|
|
|
|
|
|
- if ( Array.isArray( array ) ) {
|
|
|
|
-
|
|
|
|
- throw new TypeError( 'THREE.BufferAttribute: array should be a Typed Array.' );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
console.warn( 'THREE.BufferAttribute: .setArray has been deprecated. Use BufferGeometry .setAttribute to replace/resize attribute buffers' );
|
|
console.warn( 'THREE.BufferAttribute: .setArray has been deprecated. Use BufferGeometry .setAttribute to replace/resize attribute buffers' );
|
|
|
|
|
|
this.count = array !== undefined ? array.length / this.itemSize : 0;
|
|
this.count = array !== undefined ? array.length / this.itemSize : 0;
|
|
@@ -1257,12 +1251,6 @@ Object.assign( InterleavedBuffer.prototype, {
|
|
|
|
|
|
setArray: function ( array ) {
|
|
setArray: function ( array ) {
|
|
|
|
|
|
- if ( Array.isArray( array ) ) {
|
|
|
|
-
|
|
|
|
- throw new TypeError( 'THREE.BufferAttribute: array should be a Typed Array.' );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
console.warn( 'THREE.InterleavedBuffer: .setArray has been deprecated. Use BufferGeometry .setAttribute to replace/resize attribute buffers' );
|
|
console.warn( 'THREE.InterleavedBuffer: .setArray has been deprecated. Use BufferGeometry .setAttribute to replace/resize attribute buffers' );
|
|
|
|
|
|
this.count = array !== undefined ? array.length / this.stride : 0;
|
|
this.count = array !== undefined ? array.length / this.stride : 0;
|