mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
attachment type bounding box should be lower case
Fixed all occurences of spine.AttachmentType.boundingBox to be lowercase.
This commit is contained in:
parent
564025d955
commit
4865f288f3
@ -904,7 +904,7 @@ spine.BoundingBoxAttachment = function (name) {
|
|||||||
this.vertices = [];
|
this.vertices = [];
|
||||||
};
|
};
|
||||||
spine.BoundingBoxAttachment.prototype = {
|
spine.BoundingBoxAttachment.prototype = {
|
||||||
type: spine.AttachmentType.boundingBox,
|
type: spine.AttachmentType.boundingbox,
|
||||||
computeWorldVertices: function (x, y, bone, worldVertices) {
|
computeWorldVertices: function (x, y, bone, worldVertices) {
|
||||||
x += bone.worldX;
|
x += bone.worldX;
|
||||||
y += bone.worldY;
|
y += bone.worldY;
|
||||||
@ -1241,7 +1241,7 @@ spine.SkeletonJson.prototype = {
|
|||||||
attachment.width = (map["width"] || 32) * this.scale;
|
attachment.width = (map["width"] || 32) * this.scale;
|
||||||
attachment.height = (map["height"] || 32) * this.scale;
|
attachment.height = (map["height"] || 32) * this.scale;
|
||||||
attachment.updateOffset();
|
attachment.updateOffset();
|
||||||
} else if (type == spine.AttachmentType.boundingBox) {
|
} else if (type == spine.AttachmentType.boundingbox) {
|
||||||
var vertices = map["vertices"];
|
var vertices = map["vertices"];
|
||||||
for (var i = 0, n = vertices.length; i < n; i++)
|
for (var i = 0, n = vertices.length; i < n; i++)
|
||||||
attachment.vertices.push(vertices[i] * this.scale);
|
attachment.vertices.push(vertices[i] * this.scale);
|
||||||
@ -1688,7 +1688,7 @@ spine.SkeletonBounds.prototype = {
|
|||||||
for (var i = 0; i < slotCount; i++) {
|
for (var i = 0; i < slotCount; i++) {
|
||||||
var slot = slots[i];
|
var slot = slots[i];
|
||||||
var boundingBox = slot.attachment;
|
var boundingBox = slot.attachment;
|
||||||
if (boundingBox.type != spine.AttachmentType.boundingBox) continue;
|
if (boundingBox.type != spine.AttachmentType.boundingbox) continue;
|
||||||
boundingBoxes.push(boundingBox);
|
boundingBoxes.push(boundingBox);
|
||||||
|
|
||||||
var poolCount = polygonPool.length, polygon;
|
var poolCount = polygonPool.length, polygon;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user