Эх сурвалжийг харах

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

NathanSweet 9 жил өмнө
parent
commit
48e686ad95

+ 8 - 1
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 () {