Skip to content

Commit

Permalink
Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanSweet committed Oct 2, 2014
1 parent 7a0475c commit 851f0b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions spine-libgdx/src/com/esotericsoftware/spine/Animation.java
Expand Up @@ -157,6 +157,7 @@ abstract static public class CurveTimeline implements Timeline {
private final float[] curves; // type, x, y, ...

public CurveTimeline (int frameCount) {
if (frameCount <= 0) throw new IllegalArgumentException("frameCount must be > 0: " + frameCount);
curves = new float[(frameCount - 1) * BEZIER_SIZE];
}

Expand Down
13 changes: 7 additions & 6 deletions spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java
Expand Up @@ -134,13 +134,13 @@ public SkeletonData readSkeletonData (FileHandle file) {

// IK constraints.
for (int i = 0, n = input.readInt(true); i < n; i++) {
IkConstraintData ikConstraint = new IkConstraintData(input.readString());
IkConstraintData ikConstraintData = new IkConstraintData(input.readString());
for (int ii = 0, nn = input.readInt(true); ii < nn; ii++)
ikConstraint.bones.add(skeletonData.bones.get(input.readInt(true)));
ikConstraint.target = skeletonData.bones.get(input.readInt(true));
ikConstraint.mix = input.readFloat();
ikConstraint.bendDirection = input.readByte();
skeletonData.ikConstraints.add(ikConstraint);
ikConstraintData.bones.add(skeletonData.bones.get(input.readInt(true)));
ikConstraintData.target = skeletonData.bones.get(input.readInt(true));
ikConstraintData.mix = input.readFloat();
ikConstraintData.bendDirection = input.readByte();
skeletonData.ikConstraints.add(ikConstraintData);
}

// Slots.
Expand Down Expand Up @@ -193,6 +193,7 @@ public SkeletonData readSkeletonData (FileHandle file) {
return skeletonData;
}

/** @return May be null. */
private Skin readSkin (DataInput input, String skinName, boolean nonessential) throws IOException {
int slotCount = input.readInt(true);
if (slotCount == 0) return null;
Expand Down

0 comments on commit 851f0b5

Please sign in to comment.