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