mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-12 18:18:43 +08:00
Formatting
This commit is contained in:
parent
f0e5da6ccc
commit
308c340cc9
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user