From b3fdaca01961b8af469887bd23e406275de35dfb Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Sun, 5 Jun 2016 01:44:35 +0200 Subject: [PATCH] Fixed child IK bone not being updated when IK mix = 0. --- .../src/com/esotericsoftware/spine/IkConstraint.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/IkConstraint.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/IkConstraint.java index 4b929b9f7..50dd12514 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/IkConstraint.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/IkConstraint.java @@ -143,7 +143,10 @@ public class IkConstraint implements Updatable { * target is specified in the world coordinate system. * @param child A direct descendant of the parent bone. */ static public void apply (Bone parent, Bone child, float targetX, float targetY, int bendDir, float alpha) { - if (alpha == 0) return; + if (alpha == 0) { + child.updateWorldTransform(); + return; + } float px = parent.x, py = parent.y, psx = parent.scaleX, psy = parent.scaleY, csx = child.scaleX; int os1, os2, s2; if (psx < 0) {