mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Fixed ANSI C compilation.
This commit is contained in:
parent
2902fb2ec9
commit
1323770033
@ -106,19 +106,19 @@ static spAnimation* _spSkeletonJson_readAnimation (spSkeletonJson* self, Json* r
|
|||||||
spAnimation* animation;
|
spAnimation* animation;
|
||||||
Json* frame;
|
Json* frame;
|
||||||
float duration;
|
float duration;
|
||||||
|
int timelinesCount = 0;
|
||||||
|
|
||||||
Json* bones = Json_getItem(root, "bones");
|
Json* bones = Json_getItem(root, "bones");
|
||||||
Json* slots = Json_getItem(root, "slots");
|
Json* slots = Json_getItem(root, "slots");
|
||||||
Json* ik = Json_getItem(root, "ik");
|
Json* ik = Json_getItem(root, "ik");
|
||||||
Json* ffd = Json_getItem(root, "ffd");
|
Json* ffd = Json_getItem(root, "ffd");
|
||||||
Json* drawOrder = Json_getItem(root, "drawOrder");
|
Json* drawOrder = Json_getItem(root, "drawOrder");
|
||||||
if (!drawOrder) drawOrder = Json_getItem(root, "draworder");
|
|
||||||
Json* events = Json_getItem(root, "events");
|
Json* events = Json_getItem(root, "events");
|
||||||
Json* flipX = Json_getItem(root, "flipx");
|
Json* flipX = Json_getItem(root, "flipx");
|
||||||
Json* flipY = Json_getItem(root, "flipy");
|
Json* flipY = Json_getItem(root, "flipy");
|
||||||
Json *boneMap, *slotMap, *ikMap, *ffdMap;
|
Json *boneMap, *slotMap, *ikMap, *ffdMap;
|
||||||
|
if (!drawOrder) drawOrder = Json_getItem(root, "draworder");
|
||||||
|
|
||||||
int timelinesCount = 0;
|
|
||||||
for (boneMap = bones ? bones->child : 0; boneMap; boneMap = boneMap->next)
|
for (boneMap = bones ? bones->child : 0; boneMap; boneMap = boneMap->next)
|
||||||
timelinesCount += boneMap->size;
|
timelinesCount += boneMap->size;
|
||||||
for (slotMap = slots ? slots->child : 0; slotMap; slotMap = slotMap->next)
|
for (slotMap = slots ? slots->child : 0; slotMap; slotMap = slotMap->next)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user