mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
Fixed bounding boxes when slot has no attachment.
This commit is contained in:
parent
4327c2aa30
commit
52420e8a37
@ -74,7 +74,7 @@ function SkeletonBounds.new ()
|
|||||||
|
|
||||||
for i,slot in ipairs(skeleton.slots) do
|
for i,slot in ipairs(skeleton.slots) do
|
||||||
local boundingBox = slot.attachment
|
local boundingBox = slot.attachment
|
||||||
if boundingBox.type == AttachmentType.boundingbox then
|
if boundingBox and boundingBox.type == AttachmentType.boundingbox then
|
||||||
table.insert(boundingBoxes, boundingBox)
|
table.insert(boundingBoxes, boundingBox)
|
||||||
|
|
||||||
local polygon = {}
|
local polygon = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user