浏览代码

[libgdx] Fixed loading stepped timelines from JSON.

closes #1902
Nathan Sweet 4 年之前
父节点
当前提交
9b37c31cae
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonJson.java

+ 1 - 1
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonJson.java

@@ -1025,7 +1025,7 @@ public class SkeletonJson extends SkeletonLoader {
 	int readCurve (JsonValue curve, CurveTimeline timeline, int bezier, int frame, int value, float time1, float time2,
 	int readCurve (JsonValue curve, CurveTimeline timeline, int bezier, int frame, int value, float time1, float time2,
 		float value1, float value2, float scale) {
 		float value1, float value2, float scale) {
 		if (curve.isString()) {
 		if (curve.isString()) {
-			if (value != 0) timeline.setStepped(frame);
+			if (curve.asString().equals("stepped")) timeline.setStepped(frame);
 			return bezier;
 			return bezier;
 		}
 		}
 		curve = curve.get(value << 2);
 		curve = curve.get(value << 2);