Formatting

This commit is contained in:
Mario Zechner 2024-11-15 15:18:06 +01:00
parent f0e5da6ccc
commit 308c340cc9

View File

@ -2425,13 +2425,13 @@ spine_attachment spine_attachment_copy(spine_attachment attachment) {
}
spine_bounding_box_attachment spine_attachment_cast_to_bounding_box_attachment(spine_attachment attachment) {
if (attachment == nullptr) return nullptr;
Attachment *_attachment = (Attachment *)attachment;
if (_attachment->getRTTI().isExactly(BoundingBoxAttachment::rtti)) {
BoundingBoxAttachment *boundingBox = static_cast<BoundingBoxAttachment *>(_attachment);
return (spine_bounding_box_attachment)boundingBox;
}
return nullptr;
if (attachment == nullptr) return nullptr;
Attachment *_attachment = (Attachment *) attachment;
if (_attachment->getRTTI().isExactly(BoundingBoxAttachment::rtti)) {
BoundingBoxAttachment *boundingBox = static_cast<BoundingBoxAttachment *>(_attachment);
return (spine_bounding_box_attachment) boundingBox;
}
return nullptr;
}
void spine_attachment_dispose(spine_attachment attachment) {