|
@@ -1611,7 +1611,7 @@ var spine;
|
|
|
slot.attachmentState = this.unkeyedState + AnimationState.SETUP;
|
|
|
};
|
|
|
AnimationState.prototype.setAttachment = function (skeleton, slot, attachmentName, attachments) {
|
|
|
- slot.attachment = attachmentName == null ? null : skeleton.getAttachment(slot.data.index, attachmentName);
|
|
|
+ slot.setAttachment(attachmentName == null ? null : skeleton.getAttachment(slot.data.index, attachmentName));
|
|
|
if (attachments)
|
|
|
slot.attachmentState = this.unkeyedState + AnimationState.CURRENT;
|
|
|
};
|
|
@@ -4103,17 +4103,11 @@ 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);
|