mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Clean up.
This commit is contained in:
parent
f748b5b9bc
commit
b9acf228f8
@ -95,12 +95,11 @@ public class Bone implements Updatable {
|
|||||||
Bone parent = this.parent;
|
Bone parent = this.parent;
|
||||||
if (parent == null) { // Root bone.
|
if (parent == null) { // Root bone.
|
||||||
Skeleton skeleton = this.skeleton;
|
Skeleton skeleton = this.skeleton;
|
||||||
boolean skeletonFlipX = skeleton.flipX, skeletonFlipY = skeleton.flipY;
|
if (skeleton.flipX) {
|
||||||
if (skeletonFlipX) {
|
|
||||||
scaleX = -scaleX;
|
scaleX = -scaleX;
|
||||||
x = -x;
|
x = -x;
|
||||||
}
|
}
|
||||||
if (skeletonFlipY) {
|
if (skeleton.flipY) {
|
||||||
scaleY = -scaleY;
|
scaleY = -scaleY;
|
||||||
y = -y;
|
y = -y;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -226,9 +226,6 @@ public class SkeletonViewer extends ApplicationAdapter {
|
|||||||
state.apply(skeleton);
|
state.apply(skeleton);
|
||||||
}
|
}
|
||||||
skeleton.setPosition(skeletonX, skeletonY);
|
skeleton.setPosition(skeletonX, skeletonY);
|
||||||
// skeleton.setPosition(0, 0);
|
|
||||||
// skeleton.getRootBone().setX(skeletonX);
|
|
||||||
// skeleton.getRootBone().setY(skeletonY);
|
|
||||||
skeleton.updateWorldTransform();
|
skeleton.updateWorldTransform();
|
||||||
|
|
||||||
batch.setColor(Color.WHITE);
|
batch.setColor(Color.WHITE);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user