From 4865f288f34900a2febc49b715b88d2b2b1663d1 Mon Sep 17 00:00:00 2001 From: smaren Date: Thu, 8 May 2014 12:13:25 +0200 Subject: [PATCH] attachment type bounding box should be lower case Fixed all occurences of spine.AttachmentType.boundingBox to be lowercase. --- spine-js/spine.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spine-js/spine.js b/spine-js/spine.js index 5c8fd5307..b0c29b8d5 100644 --- a/spine-js/spine.js +++ b/spine-js/spine.js @@ -904,7 +904,7 @@ spine.BoundingBoxAttachment = function (name) { this.vertices = []; }; spine.BoundingBoxAttachment.prototype = { - type: spine.AttachmentType.boundingBox, + type: spine.AttachmentType.boundingbox, computeWorldVertices: function (x, y, bone, worldVertices) { x += bone.worldX; y += bone.worldY; @@ -1241,7 +1241,7 @@ spine.SkeletonJson.prototype = { attachment.width = (map["width"] || 32) * this.scale; attachment.height = (map["height"] || 32) * this.scale; attachment.updateOffset(); - } else if (type == spine.AttachmentType.boundingBox) { + } else if (type == spine.AttachmentType.boundingbox) { var vertices = map["vertices"]; for (var i = 0, n = vertices.length; i < n; i++) attachment.vertices.push(vertices[i] * this.scale); @@ -1688,7 +1688,7 @@ spine.SkeletonBounds.prototype = { for (var i = 0; i < slotCount; i++) { var slot = slots[i]; var boundingBox = slot.attachment; - if (boundingBox.type != spine.AttachmentType.boundingBox) continue; + if (boundingBox.type != spine.AttachmentType.boundingbox) continue; boundingBoxes.push(boundingBox); var poolCount = polygonPool.length, polygon;