mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
[ts] Fixed incorrect calculation in AnimationState when expanding the tracks array. Closes #1360.
This commit is contained in:
parent
78a0c8e4f4
commit
9083f32ad5
@ -1755,7 +1755,7 @@ var spine;
|
||||
AnimationState.prototype.expandToIndex = function (index) {
|
||||
if (index < this.tracks.length)
|
||||
return this.tracks[index];
|
||||
spine.Utils.ensureArrayCapacity(this.tracks, index - this.tracks.length + 1, null);
|
||||
spine.Utils.ensureArrayCapacity(this.tracks, index + 1, null);
|
||||
this.tracks.length = index + 1;
|
||||
return null;
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1755,7 +1755,7 @@ var spine;
|
||||
AnimationState.prototype.expandToIndex = function (index) {
|
||||
if (index < this.tracks.length)
|
||||
return this.tracks[index];
|
||||
spine.Utils.ensureArrayCapacity(this.tracks, index - this.tracks.length + 1, null);
|
||||
spine.Utils.ensureArrayCapacity(this.tracks, index + 1, null);
|
||||
this.tracks.length = index + 1;
|
||||
return null;
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1755,7 +1755,7 @@ var spine;
|
||||
AnimationState.prototype.expandToIndex = function (index) {
|
||||
if (index < this.tracks.length)
|
||||
return this.tracks[index];
|
||||
spine.Utils.ensureArrayCapacity(this.tracks, index - this.tracks.length + 1, null);
|
||||
spine.Utils.ensureArrayCapacity(this.tracks, index + 1, null);
|
||||
this.tracks.length = index + 1;
|
||||
return null;
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1755,7 +1755,7 @@ var spine;
|
||||
AnimationState.prototype.expandToIndex = function (index) {
|
||||
if (index < this.tracks.length)
|
||||
return this.tracks[index];
|
||||
spine.Utils.ensureArrayCapacity(this.tracks, index - this.tracks.length + 1, null);
|
||||
spine.Utils.ensureArrayCapacity(this.tracks, index + 1, null);
|
||||
this.tracks.length = index + 1;
|
||||
return null;
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1755,7 +1755,7 @@ var spine;
|
||||
AnimationState.prototype.expandToIndex = function (index) {
|
||||
if (index < this.tracks.length)
|
||||
return this.tracks[index];
|
||||
spine.Utils.ensureArrayCapacity(this.tracks, index - this.tracks.length + 1, null);
|
||||
spine.Utils.ensureArrayCapacity(this.tracks, index + 1, null);
|
||||
this.tracks.length = index + 1;
|
||||
return null;
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1755,7 +1755,7 @@ var spine;
|
||||
AnimationState.prototype.expandToIndex = function (index) {
|
||||
if (index < this.tracks.length)
|
||||
return this.tracks[index];
|
||||
spine.Utils.ensureArrayCapacity(this.tracks, index - this.tracks.length + 1, null);
|
||||
spine.Utils.ensureArrayCapacity(this.tracks, index + 1, null);
|
||||
this.tracks.length = index + 1;
|
||||
return null;
|
||||
};
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -527,7 +527,7 @@ module spine {
|
||||
|
||||
expandToIndex (index: number) {
|
||||
if (index < this.tracks.length) return this.tracks[index];
|
||||
Utils.ensureArrayCapacity(this.tracks, index - this.tracks.length + 1, null);
|
||||
Utils.ensureArrayCapacity(this.tracks, index + 1, null);
|
||||
this.tracks.length = index + 1;
|
||||
return null;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user