mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
parent
56abccb508
commit
afecae737a
@ -2057,7 +2057,7 @@ spine.SkeletonJson.prototype = {
|
|||||||
frameIndex++;
|
frameIndex++;
|
||||||
}
|
}
|
||||||
timelines.push(timeline);
|
timelines.push(timeline);
|
||||||
duration = Math.max(duration, timeline.frames[timeline.frameCount * 3 - 3]);
|
duration = Math.max(duration, timeline.frames[timeline.getFrameCount() * 3 - 3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
var ffd = map["ffd"];
|
var ffd = map["ffd"];
|
||||||
@ -2118,7 +2118,7 @@ spine.SkeletonJson.prototype = {
|
|||||||
frameIndex++;
|
frameIndex++;
|
||||||
}
|
}
|
||||||
timelines[timelines.length] = timeline;
|
timelines[timelines.length] = timeline;
|
||||||
duration = Math.max(duration, timeline.frames[timeline.frameCount - 1]);
|
duration = Math.max(duration, timeline.frames[timeline.getFrameCount() - 1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2535,7 +2535,7 @@ spine.SkeletonBounds.prototype = {
|
|||||||
},
|
},
|
||||||
aabbCompute: function () {
|
aabbCompute: function () {
|
||||||
var polygons = this.polygons;
|
var polygons = this.polygons;
|
||||||
var minX = Number.MAX_VALUE, minY = Number.MAX_VALUE, maxX = Number.MIN_VALUE, maxY = Number.MIN_VALUE;
|
var minX = Number.MAX_VALUE, minY = Number.MAX_VALUE, maxX = -Number.MAX_VALUE, maxY = -Number.MAX_VALUE;
|
||||||
for (var i = 0, n = polygons.length; i < n; i++) {
|
for (var i = 0, n = polygons.length; i < n; i++) {
|
||||||
var vertices = polygons[i];
|
var vertices = polygons[i];
|
||||||
for (var ii = 0, nn = vertices.length; ii < nn; ii += 2) {
|
for (var ii = 0, nn = vertices.length; ii < nn; ii += 2) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user