mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-09 16:48:43 +08:00
[ts][libgdx] Fixed TwoColorTimeline ordinal
This commit is contained in:
parent
be1a2e3cbb
commit
8f99571185
@ -638,7 +638,7 @@ public class Animation {
|
||||
}
|
||||
|
||||
public int getPropertyId () {
|
||||
return (TimelineType.color.ordinal() << 24) + slotIndex;
|
||||
return (TimelineType.twoColor.ordinal() << 24) + slotIndex;
|
||||
}
|
||||
|
||||
public void setSlotIndex (int index) {
|
||||
|
||||
@ -446,7 +446,7 @@ var spine;
|
||||
this.frames = spine.Utils.newFloatArray(frameCount * TwoColorTimeline.ENTRIES);
|
||||
}
|
||||
TwoColorTimeline.prototype.getPropertyId = function () {
|
||||
return (TimelineType.color << 24) + this.slotIndex;
|
||||
return (TimelineType.twoColor << 24) + this.slotIndex;
|
||||
};
|
||||
TwoColorTimeline.prototype.setFrame = function (frameIndex, time, r, g, b, a, r2, g2, b2) {
|
||||
frameIndex *= TwoColorTimeline.ENTRIES;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -502,7 +502,7 @@ module spine {
|
||||
}
|
||||
|
||||
getPropertyId () {
|
||||
return (TimelineType.color << 24) + this.slotIndex;
|
||||
return (TimelineType.twoColor << 24) + this.slotIndex;
|
||||
}
|
||||
|
||||
/** Sets the time and value of the specified keyframe. */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user