mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-08 11:46:53 +08:00
Minor updates.
This commit is contained in:
parent
d11f6b6864
commit
cf7cc1d0ef
@ -34,8 +34,8 @@ AtlasPage* AtlasPage_create (const char* name) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void AtlasPage_dispose (AtlasPage* self) {
|
void AtlasPage_dispose (AtlasPage* self) {
|
||||||
FREE(self->name);
|
|
||||||
_AtlasPage_disposeTexture(self);
|
_AtlasPage_disposeTexture(self);
|
||||||
|
FREE(self->name);
|
||||||
FREE(self);
|
FREE(self);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -58,14 +58,13 @@ Skeleton* Skeleton_create (SkeletonData* data) {
|
|||||||
SlotData *slotData = data->slots[i];
|
SlotData *slotData = data->slots[i];
|
||||||
|
|
||||||
/* Find bone for the slotData's boneData. */
|
/* Find bone for the slotData's boneData. */
|
||||||
Bone *bone;
|
Bone* bone = 0;
|
||||||
for (ii = 0; ii < self->boneCount; ++ii) {
|
for (ii = 0; ii < self->boneCount; ++ii) {
|
||||||
if (data->bones[ii] == slotData->boneData) {
|
if (data->bones[ii] == slotData->boneData) {
|
||||||
bone = self->bones[ii];
|
bone = self->bones[ii];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self->slots[i] = Slot_create(slotData, self, bone);
|
self->slots[i] = Slot_create(slotData, self, bone);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user