mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +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;
|
||||
if (parent == null) { // Root bone.
|
||||
Skeleton skeleton = this.skeleton;
|
||||
boolean skeletonFlipX = skeleton.flipX, skeletonFlipY = skeleton.flipY;
|
||||
if (skeletonFlipX) {
|
||||
if (skeleton.flipX) {
|
||||
scaleX = -scaleX;
|
||||
x = -x;
|
||||
}
|
||||
if (skeletonFlipY) {
|
||||
if (skeleton.flipY) {
|
||||
scaleY = -scaleY;
|
||||
y = -y;
|
||||
}
|
||||
|
||||
@ -226,9 +226,6 @@ public class SkeletonViewer extends ApplicationAdapter {
|
||||
state.apply(skeleton);
|
||||
}
|
||||
skeleton.setPosition(skeletonX, skeletonY);
|
||||
// skeleton.setPosition(0, 0);
|
||||
// skeleton.getRootBone().setX(skeletonX);
|
||||
// skeleton.getRootBone().setY(skeletonY);
|
||||
skeleton.updateWorldTransform();
|
||||
|
||||
batch.setColor(Color.WHITE);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user