mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-06 02:36:56 +08:00
Fixed issue #32, bounding box.
This commit is contained in:
parent
925bad7a64
commit
a299f8b2a8
@ -354,7 +354,7 @@ char* _Util_readFile (const char* path, int* length) {
|
|||||||
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 && attachment->type != ATTACHMENT_REGION) continue;
|
if (!attachment || attachment->type != ATTACHMENT_REGION) continue;
|
||||||
Cocos2dRegionAttachment* regionAttachment = SUB_CAST(Cocos2dRegionAttachment, attachment);
|
Cocos2dRegionAttachment* regionAttachment = SUB_CAST(Cocos2dRegionAttachment, attachment);
|
||||||
minX = fmin(minX, regionAttachment->quad.bl.vertices.x);
|
minX = fmin(minX, regionAttachment->quad.bl.vertices.x);
|
||||||
minY = fmin(minY, regionAttachment->quad.bl.vertices.y);
|
minY = fmin(minY, regionAttachment->quad.bl.vertices.y);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user