소스 검색

Fixed bounding boxes when slot has no attachment.

NathanSweet 12 년 전
부모
커밋
52420e8a37
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      spine-lua/SkeletonBounds.lua

+ 1 - 1
spine-lua/SkeletonBounds.lua

@@ -74,7 +74,7 @@ function SkeletonBounds.new ()
 
 		for i,slot in ipairs(skeleton.slots) do
 			local boundingBox = slot.attachment
-			if boundingBox.type == AttachmentType.boundingbox then
+			if boundingBox and boundingBox.type == AttachmentType.boundingbox then
 				table.insert(boundingBoxes, boundingBox)
 
 				local polygon = {}