mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-15 19:41:36 +08:00
[cpp] Reverse IK bend positive logic.
This matches SkeletonJson for 1-bone IK. Requires 4.3.39-beta+.
This commit is contained in:
parent
6573924a22
commit
17e843bc95
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user