mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-14 11:01:36 +08:00
Merge pull request #304 from Fraggle/patch-4
Avoid silent Array allocations
This commit is contained in:
commit
66f73e66f9
@ -243,10 +243,10 @@ public class SkeletonSprite extends DisplayObject {
|
||||
continue;
|
||||
for (var ii:int = 0; ii < verticesLength; ii += 2) {
|
||||
var x:Number = worldVertices[ii], y:Number = worldVertices[ii + 1];
|
||||
minX = Math.min(minX, x);
|
||||
minY = Math.min(minY, y);
|
||||
maxX = Math.max(maxX, x);
|
||||
maxY = Math.max(maxY, y);
|
||||
minX = minX < x ? minX : x;
|
||||
minY = minY < y ? minY : y;
|
||||
maxX = maxX > x ? maxX : x;
|
||||
maxY = maxY > y ? maxY : y;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user