mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-23 10:11:23 +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.
|
if (parent == null) { // Root bone.
|
||||||
Skeleton skeleton = this.skeleton;
|
Skeleton skeleton = this.skeleton;
|
||||||
if (skeleton.flipX) {
|
if (skeleton.flipX) {
|
||||||
|
la = -la;
|
||||||
|
lc = -lc;
|
||||||
scaleX = -scaleX;
|
scaleX = -scaleX;
|
||||||
x = -x;
|
x = -x;
|
||||||
}
|
}
|
||||||
if (skeleton.flipY) {
|
if (skeleton.flipY) {
|
||||||
|
lb = -lb;
|
||||||
|
ld = -ld;
|
||||||
scaleY = -scaleY;
|
scaleY = -scaleY;
|
||||||
y = -y;
|
y = -y;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user