mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 17:18:44 +08:00
[libgdx] Fixed path constraint mode flags.
This commit is contained in:
parent
254a4847fa
commit
f762a94638
@ -308,8 +308,8 @@ public class SkeletonBinary extends SkeletonLoader {
|
||||
data.target = (SlotData)slots[input.readInt(true)];
|
||||
int flags = input.read();
|
||||
data.positionMode = PositionMode.values[flags & 1];
|
||||
data.spacingMode = SpacingMode.values[(flags >> 1) & 2];
|
||||
data.rotateMode = RotateMode.values[(flags >> 3) & 2];
|
||||
data.spacingMode = SpacingMode.values[(flags >> 1) & 3];
|
||||
data.rotateMode = RotateMode.values[(flags >> 3) & 3];
|
||||
if ((flags & 128) != 0) data.offsetRotation = input.readFloat();
|
||||
data.position = input.readFloat();
|
||||
if (data.positionMode == PositionMode.fixed) data.position *= scale;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user