mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[libgdx] Additional changes for per-skin atlases feature.
This commit is contained in:
parent
139fd84d07
commit
20d5ee63ad
@ -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();
|
||||
|
||||
|
||||
@ -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)
|
||||
if (regions[i] == null && !allowMissingRegions)
|
||||
throw new RuntimeException("Region not found in atlas: " + path + " (sequence: " + name + ")");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user