Fixed binary path.

This commit is contained in:
NathanSweet 2013-12-06 12:37:54 +01:00
parent 54ae334637
commit 5ef80af12e

View File

@ -190,7 +190,7 @@ public class SkeletonBinary {
switch (AttachmentType.values()[input.readByte()]) {
case region:
String path = input.readString();
if (path.length() == 0) path = name;
if (path == null) path = name;
RegionAttachment region = attachmentLoader.newRegionAttachment(skin, name, path);
if (region == null) return null;
region.setX(input.readFloat() * scale);