mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 09:08:42 +08:00
[libgdx] Better exception message for Batch that can't render meshes.
This commit is contained in:
parent
5cd07084b0
commit
f06bfd9f16
@ -101,9 +101,8 @@ public class SkeletonRenderer {
|
||||
continue;
|
||||
|
||||
} else if (attachment instanceof MeshAttachment) {
|
||||
throw new RuntimeException(
|
||||
"SkeletonRenderer#draw(PolygonSpriteBatch, Skeleton) or #draw(TwoColorPolygonBatch, Skeleton) must be used to "
|
||||
+ "render meshes.");
|
||||
throw new RuntimeException(batch.getClass().getSimpleName()
|
||||
+ " cannot render meshes, PolygonSpriteBatch or TwoColorPolygonBatch is required.");
|
||||
|
||||
} else if (attachment instanceof SkeletonAttachment) {
|
||||
Skeleton attachmentSkeleton = ((SkeletonAttachment)attachment).getSkeleton();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user