Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Nov 15, 2024
1 parent f0e5da6 commit 308c340
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spine-cpp/spine-cpp-lite/spine-cpp-lite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 308c340

Please sign in to comment.