|
8129 | 8129 |
|
8130 | 8130 | var result = optionalTarget || new Sphere();
|
8131 | 8131 |
|
8132 |
| - result.center = this.getCenter(); |
| 8132 | + this.getCenter( result.center ); |
| 8133 | + |
8133 | 8134 | result.radius = this.size( v1 ).length() * 0.5;
|
8134 | 8135 |
|
8135 | 8136 | return result;
|
|
9589 | 9590 |
|
9590 | 9591 | this.array = array;
|
9591 | 9592 | this.itemSize = itemSize;
|
| 9593 | + this.count = array.length / itemSize; |
9592 | 9594 | this.normalized = normalized === true;
|
9593 | 9595 |
|
9594 | 9596 | this.dynamic = false;
|
|
9604 | 9606 |
|
9605 | 9607 | isBufferAttribute: true,
|
9606 | 9608 |
|
9607 |
| - get count() { |
9608 |
| - |
9609 |
| - return this.array.length / this.itemSize; |
9610 |
| - |
9611 |
| - }, |
9612 |
| - |
9613 | 9609 | set needsUpdate( value ) {
|
9614 | 9610 |
|
9615 | 9611 | if ( value === true ) this.version ++;
|
|
9628 | 9624 |
|
9629 | 9625 | this.array = new source.array.constructor( source.array );
|
9630 | 9626 | this.itemSize = source.itemSize;
|
| 9627 | + this.count = source.count; |
9631 | 9628 | this.normalized = source.normalized;
|
9632 | 9629 |
|
9633 | 9630 | this.dynamic = source.dynamic;
|
|
27117 | 27114 | },
|
27118 | 27115 |
|
27119 | 27116 | // parse the animation.hierarchy format
|
27120 |
| - parseAnimation: function( animation, bones, nodeName ) { |
| 27117 | + parseAnimation: function( animation, bones ) { |
27121 | 27118 |
|
27122 | 27119 | if ( ! animation ) {
|
27123 | 27120 |
|
|
38110 | 38107 |
|
38111 | 38108 | isInterleavedBufferAttribute: true,
|
38112 | 38109 |
|
38113 |
| - get length() { |
38114 |
| - |
38115 |
| - console.warn( 'THREE.BufferAttribute: .length has been deprecated. Please use .count.' ); |
38116 |
| - return this.array.length; |
38117 |
| - |
38118 |
| - }, |
38119 |
| - |
38120 | 38110 | get count() {
|
38121 | 38111 |
|
38122 | 38112 | return this.data.count;
|
|
38233 | 38223 |
|
38234 | 38224 | this.array = array;
|
38235 | 38225 | this.stride = stride;
|
| 38226 | + this.count = array.length / stride; |
38236 | 38227 |
|
38237 | 38228 | this.dynamic = false;
|
38238 | 38229 | this.updateRange = { offset: 0, count: - 1 };
|
|
38247 | 38238 |
|
38248 | 38239 | isInterleavedBuffer: true,
|
38249 | 38240 |
|
38250 |
| - get length () { |
38251 |
| - |
38252 |
| - return this.array.length; |
38253 |
| - |
38254 |
| - }, |
38255 |
| - |
38256 |
| - get count () { |
38257 |
| - |
38258 |
| - return this.array.length / this.stride; |
38259 |
| - |
38260 |
| - }, |
38261 |
| - |
38262 | 38241 | set needsUpdate( value ) {
|
38263 | 38242 |
|
38264 | 38243 | if ( value === true ) this.version ++;
|
|
38276 | 38255 | copy: function ( source ) {
|
38277 | 38256 |
|
38278 | 38257 | this.array = new source.array.constructor( source.array );
|
| 38258 | + this.count = source.count; |
38279 | 38259 | this.stride = source.stride;
|
38280 | 38260 | this.dynamic = source.dynamic;
|
38281 | 38261 |
|
|
0 commit comments