diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java index c4114faee..b22825044 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBinary.java @@ -477,7 +477,7 @@ public class SkeletonBinary extends SkeletonLoader { if (parent == null) throw new SerializationException("Parent mesh not found: " + linkedMesh.parent); linkedMesh.mesh.setTimelineAttachment(linkedMesh.inheritTimelines ? (VertexAttachment)parent : linkedMesh.mesh); linkedMesh.mesh.setParentMesh((MeshAttachment)parent); - if (linkedMesh.mesh.getSequence() == null) linkedMesh.mesh.updateRegion(); + if (linkedMesh.mesh.getRegion() == null) linkedMesh.mesh.updateRegion(); } linkedMeshes.clear(); diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/AtlasAttachmentLoader.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/AtlasAttachmentLoader.java index 572e3a928..0de792108 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/AtlasAttachmentLoader.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/AtlasAttachmentLoader.java @@ -60,11 +60,8 @@ public class AtlasAttachmentLoader implements AttachmentLoader { for (int i = 0, n = regions.length; i < n; i++) { String path = sequence.getPath(basePath, i); regions[i] = atlas.findRegion(path); - if (regions[i] == null) { - if (!allowMissingRegions) - throw new RuntimeException("Region not found in atlas: " + path + " (sequence: " + name + ")"); - continue; - } + if (regions[i] == null && !allowMissingRegions) + throw new RuntimeException("Region not found in atlas: " + path + " (sequence: " + name + ")"); } }