mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[js] Fixed SkeletonBounds.
This commit is contained in:
parent
076ed0b401
commit
6705dcd02a
@ -2743,11 +2743,11 @@ spine.SkeletonBounds.prototype = {
|
|||||||
if (poolCount > 0) {
|
if (poolCount > 0) {
|
||||||
polygon = polygonPool[poolCount - 1];
|
polygon = polygonPool[poolCount - 1];
|
||||||
polygonPool.splice(poolCount - 1, 1);
|
polygonPool.splice(poolCount - 1, 1);
|
||||||
|
polygon.length = boundingBox.vertices.length;
|
||||||
} else
|
} else
|
||||||
polygon = new spine.Float32Array();
|
polygon = new Array(boundingBox.vertices.length);
|
||||||
polygons[polygons.length] = polygon;
|
polygons[polygons.length] = polygon;
|
||||||
|
|
||||||
polygon.length = boundingBox.vertices.length;
|
|
||||||
boundingBox.computeWorldVertices(x, y, slot.bone, polygon);
|
boundingBox.computeWorldVertices(x, y, slot.bone, polygon);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user