From 25bd863549e52c81057612813c755d8ef0ff4b9e Mon Sep 17 00:00:00 2001 From: Nathan Sweet Date: Mon, 21 Jul 2025 15:30:21 -0400 Subject: [PATCH] [libgdx] Reverse IK bend positive logic. This matches SkeletonJson for 1-bone IK. Requires 4.3.39-beta+. --- .../src/com/esotericsoftware/spine/SkeletonBinary.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java index 623763fb8..7ebaab95b 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java @@ -287,7 +287,7 @@ public class SkeletonBinary extends SkeletonLoader { data.skinRequired = (flags & 1) != 0; data.uniform = (flags & 2) != 0; IkConstraintPose setup = data.setup; - setup.bendDirection = (flags & 4) != 0 ? 1 : -1; + setup.bendDirection = (flags & 4) != 0 ? -1 : 1; setup.compress = (flags & 8) != 0; setup.stretch = (flags & 16) != 0; if ((flags & 32) != 0) setup.mix = (flags & 64) != 0 ? input.readFloat() : 1;