mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
Clear the AABB from previous calls if not computing a new one.
This commit is contained in:
parent
40d1224db8
commit
48e686ad95
@ -71,7 +71,14 @@ public class SkeletonBounds {
|
||||
}
|
||||
}
|
||||
|
||||
if (updateAabb) aabbCompute();
|
||||
if (updateAabb)
|
||||
aabbCompute();
|
||||
else {
|
||||
minX = Integer.MIN_VALUE;
|
||||
minY = Integer.MIN_VALUE;
|
||||
maxX = Integer.MAX_VALUE;
|
||||
maxY = Integer.MAX_VALUE;
|
||||
}
|
||||
}
|
||||
|
||||
private void aabbCompute () {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user