From 48e686ad953c1de2f9527cd3e93a10fa93051e00 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Fri, 28 Oct 2016 22:46:28 +0200 Subject: [PATCH] Clear the AABB from previous calls if not computing a new one. --- .../src/com/esotericsoftware/spine/SkeletonBounds.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBounds.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBounds.java index 8e044977e..4bfd49e7a 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBounds.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBounds.java @@ -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 () {