瀏覽代碼

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

NathanSweet 6 年之前
父節點
當前提交
2cc92a6f7c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skeleton.java

+ 1 - 0
spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Skeleton.java

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