Skip to content

Commit 12c76c5

Browse files
committed
Updated builds.
1 parent 0526207 commit 12c76c5

File tree

3 files changed

+120
-86
lines changed

3 files changed

+120
-86
lines changed

build/three.js

Lines changed: 29 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35444,9 +35444,6 @@
3544435444

3544535445
this.setInterpolation( interpolation || this.DefaultInterpolation );
3544635446

35447-
this.validate();
35448-
this.optimize();
35449-
3545035447
}
3545135448

3545235449
// Static methods
@@ -35571,12 +35568,14 @@
3557135568
}
3557235569

3557335570
console.warn( 'THREE.KeyframeTrack:', message );
35574-
return;
35571+
return this;
3557535572

3557635573
}
3557735574

3557835575
this.createInterpolant = factoryMethod;
3557935576

35577+
return this;
35578+
3558035579
},
3558135580

3558235581
getInterpolation: function () {
@@ -36113,8 +36112,6 @@
3611336112

3611436113
}
3611536114

36116-
this.optimize();
36117-
3611836115
}
3611936116

3612036117
function getTrackTypeForValueTypeName( typeName ) {
@@ -36489,6 +36486,8 @@
3648936486

3649036487
this.duration = duration;
3649136488

36489+
return this;
36490+
3649236491
},
3649336492

3649436493
trim: function () {
@@ -36503,6 +36502,20 @@
3650336502

3650436503
},
3650536504

36505+
validate: function () {
36506+
36507+
var valid = true;
36508+
36509+
for ( var i = 0; i < this.tracks.length; i ++ ) {
36510+
36511+
valid = valid && this.tracks[ i ].validate();
36512+
36513+
}
36514+
36515+
return valid;
36516+
36517+
},
36518+
3650636519
optimize: function () {
3650736520

3650836521
for ( var i = 0; i < this.tracks.length; i ++ ) {
@@ -41843,13 +41856,19 @@
4184341856
_updateTime: function ( deltaTime ) {
4184441857

4184541858
var time = this.time + deltaTime;
41859+
var duration = this._clip.duration;
41860+
var loop = this.loop;
41861+
var loopCount = this._loopCount;
41862+
41863+
var pingPong = ( loop === LoopPingPong );
4184641864

41847-
if ( deltaTime === 0 ) return time;
41865+
if ( deltaTime === 0 ) {
4184841866

41849-
var duration = this._clip.duration,
41867+
if ( loopCount === - 1 ) return time;
4185041868

41851-
loop = this.loop,
41852-
loopCount = this._loopCount;
41869+
return ( pingPong && ( loopCount & 1 ) === 1 ) ? duration - time : time;
41870+
41871+
}
4185341872

4185441873
if ( loop === LoopOnce ) {
4185541874

@@ -41886,8 +41905,6 @@
4188641905

4188741906
} else { // repetitive Repeat or PingPong
4188841907

41889-
var pingPong = ( loop === LoopPingPong );
41890-
4189141908
if ( loopCount === - 1 ) {
4189241909

4189341910
// just started

0 commit comments

Comments
 (0)