mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-22 10:16:01 +08:00
commit
bee85e56ea
@ -192,7 +192,7 @@ CCRect CCSkeleton::boundingBox () {
|
|||||||
for (int i = 0; i < skeleton->slotCount; ++i) {
|
for (int i = 0; i < skeleton->slotCount; ++i) {
|
||||||
Slot* slot = skeleton->slots[i];
|
Slot* slot = skeleton->slots[i];
|
||||||
Attachment* attachment = slot->attachment;
|
Attachment* attachment = slot->attachment;
|
||||||
if (attachment->type != ATTACHMENT_REGION) continue;
|
if (!attachment || attachment->type != ATTACHMENT_REGION) continue;
|
||||||
Cocos2dxRegionAttachment* regionAttachment = SUB_CAST(Cocos2dxRegionAttachment, attachment);
|
Cocos2dxRegionAttachment* regionAttachment = SUB_CAST(Cocos2dxRegionAttachment, attachment);
|
||||||
minX = min(minX, regionAttachment->quad.bl.vertices.x);
|
minX = min(minX, regionAttachment->quad.bl.vertices.x);
|
||||||
minY = min(minY, regionAttachment->quad.bl.vertices.y);
|
minY = min(minY, regionAttachment->quad.bl.vertices.y);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user