mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 02:06:03 +08:00
Fixed bounding box vertices length.
This commit is contained in:
parent
72802fd62f
commit
000a06ee09
@ -1644,7 +1644,6 @@ spine.WeightedMeshAttachment.prototype = {
|
|||||||
|
|
||||||
spine.BoundingBoxAttachment = function (name) {
|
spine.BoundingBoxAttachment = function (name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.vertices = new spine.Float32Array();
|
|
||||||
};
|
};
|
||||||
spine.BoundingBoxAttachment.prototype = {
|
spine.BoundingBoxAttachment.prototype = {
|
||||||
type: spine.AttachmentType.boundingbox,
|
type: spine.AttachmentType.boundingbox,
|
||||||
@ -2146,6 +2145,7 @@ spine.SkeletonJson.prototype = {
|
|||||||
case spine.AttachmentType.boundingbox:
|
case spine.AttachmentType.boundingbox:
|
||||||
var attachment = this.attachmentLoader.newBoundingBoxAttachment(skin, name);
|
var attachment = this.attachmentLoader.newBoundingBoxAttachment(skin, name);
|
||||||
var vertices = map["vertices"];
|
var vertices = map["vertices"];
|
||||||
|
attachment.vertices = new spine.Float32Array(vertices.length);
|
||||||
for (var i = 0, n = vertices.length; i < n; i++)
|
for (var i = 0, n = vertices.length; i < n; i++)
|
||||||
attachment.vertices[i] = vertices[i] * scale;
|
attachment.vertices[i] = vertices[i] * scale;
|
||||||
return attachment;
|
return attachment;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user