Skip to content

Commit

Permalink
[libgdx] Fixed loading stepped timelines from JSON.
Browse files Browse the repository at this point in the history
closes #1902
  • Loading branch information
NathanSweet committed Jun 15, 2021
1 parent 8e21d09 commit 9b37c31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ private Timeline readTimeline (JsonValue keyMap, CurveTimeline2 timeline, String
int readCurve (JsonValue curve, CurveTimeline timeline, int bezier, int frame, int value, float time1, float time2,
float value1, float value2, float scale) {
if (curve.isString()) {
if (value != 0) timeline.setStepped(frame);
if (curve.asString().equals("stepped")) timeline.setStepped(frame);
return bezier;
}
curve = curve.get(value << 2);
Expand Down

0 comments on commit 9b37c31

Please sign in to comment.