[js] Fixed SkeletonBounds.

This commit is contained in:
NathanSweet 2016-08-08 05:11:30 +02:00
parent 076ed0b401
commit 6705dcd02a

View File

@ -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);
}