mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 09:16:01 +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) {
|
||||
this.name = name;
|
||||
this.vertices = new spine.Float32Array();
|
||||
};
|
||||
spine.BoundingBoxAttachment.prototype = {
|
||||
type: spine.AttachmentType.boundingbox,
|
||||
@ -2146,6 +2145,7 @@ spine.SkeletonJson.prototype = {
|
||||
case spine.AttachmentType.boundingbox:
|
||||
var attachment = this.attachmentLoader.newBoundingBoxAttachment(skin, name);
|
||||
var vertices = map["vertices"];
|
||||
attachment.vertices = new spine.Float32Array(vertices.length);
|
||||
for (var i = 0, n = vertices.length; i < n; i++)
|
||||
attachment.vertices[i] = vertices[i] * scale;
|
||||
return attachment;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user