|
@@ -86,7 +86,7 @@ import com.esotericsoftware.spine.attachments.PointAttachment;
|
|
|
import com.esotericsoftware.spine.attachments.RegionAttachment;
|
|
|
import com.esotericsoftware.spine.attachments.SequenceAttachment;
|
|
|
import com.esotericsoftware.spine.attachments.SequenceAttachment.SequenceMode;
|
|
|
-import com.esotericsoftware.spine.attachments.TextureRegionAttachment;
|
|
|
+import com.esotericsoftware.spine.attachments.HasTextureRegion;
|
|
|
import com.esotericsoftware.spine.attachments.VertexAttachment;
|
|
|
|
|
|
/** Loads skeleton data in the Spine JSON format.
|
|
@@ -475,7 +475,7 @@ public class SkeletonJson extends SkeletonLoader {
|
|
|
case sequence:
|
|
|
Attachment attachment = readAttachment(map.getChild("attachment"), skin, slotIndex, name, skeletonData);
|
|
|
if (attachment == null) return null;
|
|
|
- String path = ((TextureRegionAttachment)attachment).getPath();
|
|
|
+ String path = ((HasTextureRegion)attachment).getPath();
|
|
|
int frameCount = map.getInt("count");
|
|
|
SequenceAttachment sequence = attachmentLoader.newSequenceAttachment(skin, name, path, frameCount);
|
|
|
if (sequence == null) return null;
|