فهرست منبع

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

NathanSweet 9 سال پیش
والد
کامیت
48e686ad95
1فایلهای تغییر یافته به همراه8 افزوده شده و 1 حذف شده
  1. 8 1
      spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/SkeletonBounds.java

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