[libgdx] Don't include inactive bounds when computing skeleton bounds.

This commit is contained in:
NathanSweet 2019-06-04 22:40:29 +02:00
parent 1d0cce3707
commit 2cc92a6f7c

View File

@ -666,6 +666,7 @@ public class Skeleton {
float minX = Integer.MAX_VALUE, minY = Integer.MAX_VALUE, maxX = Integer.MIN_VALUE, maxY = Integer.MIN_VALUE;
for (int i = 0, n = drawOrder.size; i < n; i++) {
Slot slot = drawOrder.get(i);
if (!slot.bone.active) continue;
int verticesLength = 0;
float[] vertices = null;
Attachment attachment = slot.attachment;