NathanSweet 11 жил өмнө
parent
commit
5ef80af12e

+ 1 - 1
spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java

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