mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
Updated error message.
This commit is contained in:
parent
c5bdb62386
commit
1e7f6277c2
@ -64,7 +64,7 @@ public class AtlasAttachmentLoader implements AttachmentLoader {
|
|||||||
public WeightedMeshAttachment newWeightedMeshAttachment (Skin skin, String name, String path) {
|
public WeightedMeshAttachment newWeightedMeshAttachment (Skin skin, String name, String path) {
|
||||||
AtlasRegion region = atlas.findRegion(path);
|
AtlasRegion region = atlas.findRegion(path);
|
||||||
if (region == null)
|
if (region == null)
|
||||||
throw new RuntimeException("Region not found in atlas: " + path + " (skinned mesh attachment: " + name + ")");
|
throw new RuntimeException("Region not found in atlas: " + path + " (weighted mesh attachment: " + name + ")");
|
||||||
WeightedMeshAttachment attachment = new WeightedMeshAttachment(name);
|
WeightedMeshAttachment attachment = new WeightedMeshAttachment(name);
|
||||||
attachment.setRegion(region);
|
attachment.setRegion(region);
|
||||||
return attachment;
|
return attachment;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user