Skip to content

Commit baf6ea0

Browse files
committed
[ts] Fix TrackEntry.mixDuration, add TrackEntry.setMixDurationWithDelay(), closes #2518
1 parent 485de74 commit baf6ea0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spine-ts/spine-core/src/AnimationState.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,11 @@ export class TrackEntry {
951951

952952
set mixDuration (mixDuration: number) {
953953
this._mixDuration = mixDuration;
954-
if (this.previous != null && this.delay <= 0) this.delay += this.previous.getTrackComplete() - mixDuration;
954+
}
955+
956+
setMixDurationWithDelta(mixDuration: number, delay: number) {
957+
this._mixDuration = mixDuration;
958+
if (this.previous != null && this.delay <= 0) this.delay += this.previous.getTrackComplete() - delay;
955959
this.delay = this.delay;
956960
}
957961

0 commit comments

Comments
 (0)