From 6ecf8ef695cd6316a2f1c18de69a68edd4da04d7 Mon Sep 17 00:00:00 2001 From: Tadas Miceika Date: Thu, 5 Feb 2015 11:09:46 +0200 Subject: [PATCH] fix compiling --- spine-c/src/spine/IkConstraint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-c/src/spine/IkConstraint.c b/spine-c/src/spine/IkConstraint.c index f73650598..13d9dda43 100644 --- a/spine-c/src/spine/IkConstraint.c +++ b/spine-c/src/spine/IkConstraint.c @@ -70,7 +70,7 @@ void spIkConstraint_apply1 (spBone* bone, float targetX, float targetY, float al float parentRotation = (!bone->data->inheritRotation || !bone->parent) ? 0 : bone->parent->worldRotation; float rotation = bone->rotation; float rotationIK = ATAN2(targetY - bone->worldY, targetX - bone->worldX) * RAD_DEG; - if (bone->worldFlipX != (bone->worldFlipY != Bone_isYDown())) rotationIK = -rotationIK; + if (bone->worldFlipX != (bone->worldFlipY != spBone_isYDown())) rotationIK = -rotationIK; rotationIK -= parentRotation; bone->rotationIK = rotation + (rotationIK - rotation) * alpha; }