소스 검색

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