Skip to content

Commit a966046

Browse files
committed
Updated builds.
1 parent ab8c387 commit a966046

File tree

2 files changed

+350
-370
lines changed

2 files changed

+350
-370
lines changed

build/three.js

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8129,7 +8129,8 @@
81298129

81308130
var result = optionalTarget || new Sphere();
81318131

8132-
result.center = this.getCenter();
8132+
this.getCenter( result.center );
8133+
81338134
result.radius = this.size( v1 ).length() * 0.5;
81348135

81358136
return result;
@@ -9589,6 +9590,7 @@
95899590

95909591
this.array = array;
95919592
this.itemSize = itemSize;
9593+
this.count = array.length / itemSize;
95929594
this.normalized = normalized === true;
95939595

95949596
this.dynamic = false;
@@ -9604,12 +9606,6 @@
96049606

96059607
isBufferAttribute: true,
96069608

9607-
get count() {
9608-
9609-
return this.array.length / this.itemSize;
9610-
9611-
},
9612-
96139609
set needsUpdate( value ) {
96149610

96159611
if ( value === true ) this.version ++;
@@ -9628,6 +9624,7 @@
96289624

96299625
this.array = new source.array.constructor( source.array );
96309626
this.itemSize = source.itemSize;
9627+
this.count = source.count;
96319628
this.normalized = source.normalized;
96329629

96339630
this.dynamic = source.dynamic;
@@ -27117,7 +27114,7 @@
2711727114
},
2711827115

2711927116
// parse the animation.hierarchy format
27120-
parseAnimation: function( animation, bones, nodeName ) {
27117+
parseAnimation: function( animation, bones ) {
2712127118

2712227119
if ( ! animation ) {
2712327120

@@ -38110,13 +38107,6 @@
3811038107

3811138108
isInterleavedBufferAttribute: true,
3811238109

38113-
get length() {
38114-
38115-
console.warn( 'THREE.BufferAttribute: .length has been deprecated. Please use .count.' );
38116-
return this.array.length;
38117-
38118-
},
38119-
3812038110
get count() {
3812138111

3812238112
return this.data.count;
@@ -38233,6 +38223,7 @@
3823338223

3823438224
this.array = array;
3823538225
this.stride = stride;
38226+
this.count = array.length / stride;
3823638227

3823738228
this.dynamic = false;
3823838229
this.updateRange = { offset: 0, count: - 1 };
@@ -38247,18 +38238,6 @@
3824738238

3824838239
isInterleavedBuffer: true,
3824938240

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-
3826238241
set needsUpdate( value ) {
3826338242

3826438243
if ( value === true ) this.version ++;
@@ -38276,6 +38255,7 @@
3827638255
copy: function ( source ) {
3827738256

3827838257
this.array = new source.array.constructor( source.array );
38258+
this.count = source.count;
3827938259
this.stride = source.stride;
3828038260
this.dynamic = source.dynamic;
3828138261

0 commit comments

Comments
 (0)