Clear the AABB from previous calls if not computing a new one.

This commit is contained in:
NathanSweet 2016-10-28 22:46:28 +02:00
parent 40d1224db8
commit 48e686ad95

View File

@ -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 () {