소스 검색

Fixed bend direction for IK keys.

NathanSweet 11 년 전
부모
커밋
ecab41ab8b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      spine-c/src/spine/SkeletonJson.c

+ 1 - 1
spine-c/src/spine/SkeletonJson.c

@@ -235,7 +235,7 @@ static spAnimation* _spSkeletonJson_readAnimation (spSkeletonJson* self, Json* r
 		}
 		for (frame = ikMap->child, i = 0; frame; frame = frame->next, ++i) {
 			spIkConstraintTimeline_setFrame(timeline, i, Json_getFloat(frame, "time", 0), Json_getFloat(frame, "mix", 0),
-					Json_getFloat(frame, "bendPositive", 1) ? 1 : -1);
+					Json_getInt(frame, "bendPositive", 1) ? 1 : -1);
 			readCurve(SUPER(timeline), i, frame);
 		}
 		animation->timelines[animation->timelinesCount++] = SUPER_CAST(spTimeline, timeline);