Selaa lähdekoodia

fix compiling

Tadas Miceika 10 vuotta sitten
vanhempi
commit
6ecf8ef695
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      spine-c/src/spine/IkConstraint.c

+ 1 - 1
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 parentRotation = (!bone->data->inheritRotation || !bone->parent) ? 0 : bone->parent->worldRotation;
 	float rotation = bone->rotation;
 	float rotation = bone->rotation;
 	float rotationIK = ATAN2(targetY - bone->worldY, targetX - bone->worldX) * RAD_DEG;
 	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;
 	rotationIK -= parentRotation;
 	bone->rotationIK = rotation + (rotationIK - rotation) * alpha;
 	bone->rotationIK = rotation + (rotationIK - rotation) * alpha;
 }
 }