mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
Fix AABB calculation (#1971)
This commit is contained in:
parent
dfa52de90d
commit
c92bca135f
@ -198,10 +198,10 @@ float SkeletonBounds::getHeight() {
|
||||
}
|
||||
|
||||
void SkeletonBounds::aabbCompute() {
|
||||
float minX = FLT_MIN;
|
||||
float minY = FLT_MIN;
|
||||
float maxX = FLT_MAX;
|
||||
float maxY = FLT_MAX;
|
||||
float minX = FLT_MAX;
|
||||
float minY = FLT_MAX;
|
||||
float maxX = FLT_MIN;
|
||||
float maxY = FLT_MIN;
|
||||
|
||||
for (size_t i = 0, n = _polygons.size(); i < n; ++i) {
|
||||
spine::Polygon *polygon = _polygons[i];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user