Clean up.

This commit is contained in:
NathanSweet 2016-01-11 02:18:37 +01:00
parent f748b5b9bc
commit b9acf228f8
2 changed files with 2 additions and 6 deletions

View File

@ -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;
}

View File

@ -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);