Browse Source

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

badlogic 6 years ago
parent
commit
ba05b672c1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      spine-ts/core/src/Skeleton.ts

+ 1 - 0
spine-ts/core/src/Skeleton.ts

@@ -503,6 +503,7 @@ module spine {
 			let minX = Number.POSITIVE_INFINITY, minY = Number.POSITIVE_INFINITY, maxX = Number.NEGATIVE_INFINITY, maxY = Number.NEGATIVE_INFINITY;
 			for (let i = 0, n = drawOrder.length; i < n; i++) {
 				let slot = drawOrder[i];
+				if (!slot.bone.active) continue;
 				let verticesLength = 0;
 				let vertices: ArrayLike<number> = null;
 				let attachment = slot.getAttachment();