mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Fix formatting.
This commit is contained in:
parent
463938b50c
commit
1cbe69d733
@ -908,23 +908,22 @@ namespace spine {
|
|||||||
return startSlotIndex > index || endSlotIndex < index;
|
return startSlotIndex > index || endSlotIndex < index;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool nothingToDraw(Slot& slot, int startSlotIndex, int endSlotIndex) {
|
bool nothingToDraw(Slot &slot, int startSlotIndex, int endSlotIndex) {
|
||||||
Attachment *attachment = slot.getAttachment();
|
Attachment *attachment = slot.getAttachment();
|
||||||
if (!attachment ||
|
if (!attachment ||
|
||||||
slotIsOutRange(slot, startSlotIndex, endSlotIndex) ||
|
slotIsOutRange(slot, startSlotIndex, endSlotIndex) ||
|
||||||
!slot.getBone().isActive())
|
!slot.getBone().isActive())
|
||||||
return true;
|
return true;
|
||||||
const auto& attachmentRTTI = attachment->getRTTI();
|
const auto &attachmentRTTI = attachment->getRTTI();
|
||||||
if (attachmentRTTI.isExactly(ClippingAttachment::rtti))
|
if (attachmentRTTI.isExactly(ClippingAttachment::rtti))
|
||||||
return false;
|
return false;
|
||||||
if (slot.getColor().a == 0)
|
if (slot.getColor().a == 0)
|
||||||
return true;
|
return true;
|
||||||
if (attachmentRTTI.isExactly(RegionAttachment::rtti)) {
|
if (attachmentRTTI.isExactly(RegionAttachment::rtti)) {
|
||||||
if (static_cast<RegionAttachment*>(attachment)->getColor().a == 0)
|
if (static_cast<RegionAttachment *>(attachment)->getColor().a == 0)
|
||||||
return true;
|
return true;
|
||||||
}
|
} else if (attachmentRTTI.isExactly(MeshAttachment::rtti)) {
|
||||||
else if (attachmentRTTI.isExactly(MeshAttachment::rtti)) {
|
if (static_cast<MeshAttachment *>(attachment)->getColor().a == 0)
|
||||||
if (static_cast<MeshAttachment*>(attachment)->getColor().a == 0)
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@ -139,7 +139,7 @@ export class AssetManagerBase implements Disposable {
|
|||||||
loadTextureAtlas (path: string,
|
loadTextureAtlas (path: string,
|
||||||
success: (path: string, atlas: TextureAtlas) => void = null,
|
success: (path: string, atlas: TextureAtlas) => void = null,
|
||||||
error: (path: string, message: string) => void = null,
|
error: (path: string, message: string) => void = null,
|
||||||
fileAlias: {[keyword:string] : string} = null
|
fileAlias: { [keyword: string]: string } = null
|
||||||
) {
|
) {
|
||||||
let index = path.lastIndexOf("/");
|
let index = path.lastIndexOf("/");
|
||||||
let parent = index >= 0 ? path.substring(0, index + 1) : "";
|
let parent = index >= 0 ? path.substring(0, index + 1) : "";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user