[cpp] Reverse IK bend positive logic.

This matches SkeletonJson for 1-bone IK. Requires 4.3.39-beta+.
This commit is contained in:
Mario Zechner 2025-07-26 00:19:55 +02:00
parent 6573924a22
commit 17e843bc95

View File

@ -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;