|
@@ -36,13 +36,13 @@ function AnimationAction( mixer, clip, localRoot ) {
|
|
|
|
|
|
this._interpolantSettings = interpolantSettings;
|
|
|
|
|
|
- this._interpolants = interpolants; // bound by the mixer
|
|
|
+ this._interpolants = interpolants; // bound by the mixer
|
|
|
|
|
|
// inside: PropertyMixer (managed by the mixer)
|
|
|
this._propertyBindings = new Array( nTracks );
|
|
|
|
|
|
- this._cacheIndex = null; // for the memory manager
|
|
|
- this._byClipCacheIndex = null; // for the memory manager
|
|
|
+ this._cacheIndex = null; // for the memory manager
|
|
|
+ this._byClipCacheIndex = null; // for the memory manager
|
|
|
|
|
|
this._timeScaleInterpolant = null;
|
|
|
this._weightInterpolant = null;
|
|
@@ -64,15 +64,15 @@ function AnimationAction( mixer, clip, localRoot ) {
|
|
|
this.weight = 1;
|
|
|
this._effectiveWeight = 1;
|
|
|
|
|
|
- this.repetitions = Infinity; // no. of repetitions when looping
|
|
|
+ this.repetitions = Infinity; // no. of repetitions when looping
|
|
|
|
|
|
- this.paused = false; // true -> zero effective time scale
|
|
|
- this.enabled = true; // false -> zero effective weight
|
|
|
+ this.paused = false; // true -> zero effective time scale
|
|
|
+ this.enabled = true; // false -> zero effective weight
|
|
|
|
|
|
- this.clampWhenFinished = false; // keep feeding the last frame?
|
|
|
+ this.clampWhenFinished = false;// keep feeding the last frame?
|
|
|
|
|
|
- this.zeroSlopeAtStart = true; // for smooth interpolation w/o separate
|
|
|
- this.zeroSlopeAtEnd = true; // clips for start, loop and end
|
|
|
+ this.zeroSlopeAtStart = true;// for smooth interpolation w/o separate
|
|
|
+ this.zeroSlopeAtEnd = true;// clips for start, loop and end
|
|
|
|
|
|
}
|
|
|
|
|
@@ -101,9 +101,9 @@ Object.assign( AnimationAction.prototype, {
|
|
|
this.paused = false;
|
|
|
this.enabled = true;
|
|
|
|
|
|
- this.time = 0; // restart clip
|
|
|
- this._loopCount = - 1; // forget previous loops
|
|
|
- this._startTime = null; // forget scheduling
|
|
|
+ this.time = 0; // restart clip
|
|
|
+ this._loopCount = - 1;// forget previous loops
|
|
|
+ this._startTime = null;// forget scheduling
|
|
|
|
|
|
return this.stopFading().stopWarping();
|
|
|
|
|
@@ -112,7 +112,7 @@ Object.assign( AnimationAction.prototype, {
|
|
|
isRunning: function () {
|
|
|
|
|
|
return this.enabled && ! this.paused && this.timeScale !== 0 &&
|
|
|
- this._startTime === null && this._mixer._isActiveAction( this );
|
|
|
+ this._startTime === null && this._mixer._isActiveAction( this );
|
|
|
|
|
|
},
|
|
|
|
|
@@ -613,8 +613,8 @@ Object.assign( AnimationAction.prototype, {
|
|
|
|
|
|
if ( pingPong ) {
|
|
|
|
|
|
- settings.endingStart = ZeroSlopeEnding;
|
|
|
- settings.endingEnd = ZeroSlopeEnding;
|
|
|
+ settings.endingStart = ZeroSlopeEnding;
|
|
|
+ settings.endingEnd = ZeroSlopeEnding;
|
|
|
|
|
|
} else {
|
|
|
|
|
@@ -659,8 +659,10 @@ Object.assign( AnimationAction.prototype, {
|
|
|
var times = interpolant.parameterPositions,
|
|
|
values = interpolant.sampleValues;
|
|
|
|
|
|
- times[ 0 ] = now; values[ 0 ] = weightNow;
|
|
|
- times[ 1 ] = now + duration; values[ 1 ] = weightThen;
|
|
|
+ times[ 0 ] = now;
|
|
|
+ values[ 0 ] = weightNow;
|
|
|
+ times[ 1 ] = now + duration;
|
|
|
+ values[ 1 ] = weightThen;
|
|
|
|
|
|
return this;
|
|
|
|