[ts][libgdx] Fixed TwoColorTimeline ordinal

This commit is contained in:
badlogic 2017-01-26 14:56:05 +01:00
parent be1a2e3cbb
commit 8f99571185
4 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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

View File

@ -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. */