Updated error message.

This commit is contained in:
NathanSweet 2016-02-27 02:13:38 +01:00
parent c5bdb62386
commit 1e7f6277c2

View File

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