mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
Fixed skeleton flip.
This commit is contained in:
parent
06687a3595
commit
ec3db90e65
@ -96,10 +96,14 @@ public class Bone implements Updatable {
|
||||
if (parent == null) { // Root bone.
|
||||
Skeleton skeleton = this.skeleton;
|
||||
if (skeleton.flipX) {
|
||||
la = -la;
|
||||
lc = -lc;
|
||||
scaleX = -scaleX;
|
||||
x = -x;
|
||||
}
|
||||
if (skeleton.flipY) {
|
||||
lb = -lb;
|
||||
ld = -ld;
|
||||
scaleY = -scaleY;
|
||||
y = -y;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user