|
@@ -6,6 +6,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
return extendStatics(d, b);
|
|
|
};
|
|
|
return function (d, b) {
|
|
|
+ if (typeof b !== "function" && b !== null)
|
|
|
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
|
extendStatics(d, b);
|
|
|
function __() { this.constructor = d; }
|
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
@@ -4101,11 +4103,17 @@ var spine;
|
|
|
var mesh = attachment;
|
|
|
verticesLength = mesh.worldVerticesLength;
|
|
|
vertices = spine.Utils.setArraySize(temp, verticesLength, 0);
|
|
|
+ if (i == 43) {
|
|
|
+ console.log("WTF");
|
|
|
+ }
|
|
|
mesh.computeWorldVertices(slot, 0, verticesLength, vertices, 0, 2);
|
|
|
}
|
|
|
if (vertices != null) {
|
|
|
for (var ii = 0, nn = vertices.length; ii < nn; ii += 2) {
|
|
|
var x = vertices[ii], y = vertices[ii + 1];
|
|
|
+ if (isNaN(x) || isNaN(y)) {
|
|
|
+ console.log("WTF");
|
|
|
+ }
|
|
|
minX = Math.min(minX, x);
|
|
|
minY = Math.min(minY, y);
|
|
|
maxX = Math.max(maxX, x);
|
|
@@ -12450,10 +12458,15 @@ var spine;
|
|
|
this.animationState.apply(this.skeleton);
|
|
|
this.skeleton.updateWorldTransform();
|
|
|
this.skeleton.getBounds(offset, size);
|
|
|
- minX = Math.min(offset.x, minX);
|
|
|
- maxX = Math.max(offset.x + size.x, maxX);
|
|
|
- minY = Math.min(offset.y, minY);
|
|
|
- maxY = Math.max(offset.y + size.y, maxY);
|
|
|
+ if (!isNaN(offset.x) && !isNaN(offset.y) && !isNaN(size.x) && !isNaN(size.y)) {
|
|
|
+ minX = Math.min(offset.x, minX);
|
|
|
+ maxX = Math.max(offset.x + size.x, maxX);
|
|
|
+ minY = Math.min(offset.y, minY);
|
|
|
+ maxY = Math.max(offset.y + size.y, maxY);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ console.log("Bounds of animation " + animationName + " are NaN");
|
|
|
+ }
|
|
|
}
|
|
|
offset.x = minX;
|
|
|
offset.y = minY;
|