From 022f7b6113e1b9e1d8aaaedc754c10151750c155 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Sat, 26 Jul 2025 01:31:46 +0200 Subject: [PATCH] [cpp] And back to new bendDirection IK behaviour --- spine-cpp/src/spine/SkeletonBinary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-cpp/src/spine/SkeletonBinary.cpp b/spine-cpp/src/spine/SkeletonBinary.cpp index a0de8d6eb..1b3f6007a 100644 --- a/spine-cpp/src/spine/SkeletonBinary.cpp +++ b/spine-cpp/src/spine/SkeletonBinary.cpp @@ -236,7 +236,7 @@ SkeletonData *SkeletonBinary::readSkeletonData(const unsigned char *binary, cons 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;