mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[cpp] Fix formatting.
This commit is contained in:
parent
a518dea2ba
commit
ec93dbac89
@ -216,7 +216,7 @@ EventQueueEntry::EventQueueEntry(EventType eventType, TrackEntry *trackEntry, Ev
|
|||||||
}
|
}
|
||||||
|
|
||||||
EventQueue *EventQueue::newEventQueue(AnimationState &state, Pool<TrackEntry> &trackEntryPool) {
|
EventQueue *EventQueue::newEventQueue(AnimationState &state, Pool<TrackEntry> &trackEntryPool) {
|
||||||
return new(__FILE__, __LINE__) EventQueue(state, trackEntryPool);
|
return new (__FILE__, __LINE__) EventQueue(state, trackEntryPool);
|
||||||
}
|
}
|
||||||
|
|
||||||
EventQueueEntry EventQueue::newEventQueueEntry(EventType eventType, TrackEntry *entry, Event *event) {
|
EventQueueEntry EventQueue::newEventQueueEntry(EventType eventType, TrackEntry *entry, Event *event) {
|
||||||
@ -497,8 +497,7 @@ bool AnimationState::apply(Skeleton &skeleton) {
|
|||||||
Slot *slot = slots[i];
|
Slot *slot = slots[i];
|
||||||
if (slot->getAttachmentState() == setupState) {
|
if (slot->getAttachmentState() == setupState) {
|
||||||
const String &attachmentName = slot->getData().getAttachmentName();
|
const String &attachmentName = slot->getData().getAttachmentName();
|
||||||
slot->setAttachment(attachmentName.isEmpty() ? NULL : skeleton.getAttachment(slot->getData().getIndex(),
|
slot->setAttachment(attachmentName.isEmpty() ? NULL : skeleton.getAttachment(slot->getData().getIndex(), attachmentName));
|
||||||
attachmentName));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
_unkeyedState += 2;
|
_unkeyedState += 2;
|
||||||
@ -1036,7 +1035,7 @@ void AnimationState::computeHold(TrackEntry *entry) {
|
|||||||
|
|
||||||
// outer:
|
// outer:
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
continue_outer:
|
continue_outer:
|
||||||
for (; i < timelinesCount; ++i) {
|
for (; i < timelinesCount; ++i) {
|
||||||
Timeline *timeline = timelines[i];
|
Timeline *timeline = timelines[i];
|
||||||
Vector<PropertyId> &ids = timeline->getPropertyIds();
|
Vector<PropertyId> &ids = timeline->getPropertyIds();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user