mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[c] Closes #1740, Parsing of path constraint timelines from JSON files was incorrect.
This commit is contained in:
parent
b4548b9166
commit
6c5948ab0b
@ -152,7 +152,7 @@ static spAnimation* _spSkeletonJson_readAnimation (spSkeletonJson* self, Json* r
|
|||||||
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* transform = Json_getItem(root, "transform");
|
Json* transform = Json_getItem(root, "transform");
|
||||||
Json* paths = Json_getItem(root, "paths");
|
Json* path = Json_getItem(root, "path");
|
||||||
Json* deformJson = Json_getItem(root, "deform");
|
Json* deformJson = Json_getItem(root, "deform");
|
||||||
Json* drawOrderJson = Json_getItem(root, "drawOrder");
|
Json* drawOrderJson = Json_getItem(root, "drawOrder");
|
||||||
Json* events = Json_getItem(root, "events");
|
Json* events = Json_getItem(root, "events");
|
||||||
@ -165,7 +165,7 @@ static spAnimation* _spSkeletonJson_readAnimation (spSkeletonJson* self, Json* r
|
|||||||
timelinesCount += slotMap->size;
|
timelinesCount += slotMap->size;
|
||||||
timelinesCount += ik ? ik->size : 0;
|
timelinesCount += ik ? ik->size : 0;
|
||||||
timelinesCount += transform ? transform->size : 0;
|
timelinesCount += transform ? transform->size : 0;
|
||||||
for (constraintMap = paths ? paths->child : 0; constraintMap; constraintMap = constraintMap->next)
|
for (constraintMap = path ? path->child : 0; constraintMap; constraintMap = constraintMap->next)
|
||||||
timelinesCount += constraintMap->size;
|
timelinesCount += constraintMap->size;
|
||||||
for (constraintMap = deformJson ? deformJson->child : 0; constraintMap; constraintMap = constraintMap->next)
|
for (constraintMap = deformJson ? deformJson->child : 0; constraintMap; constraintMap = constraintMap->next)
|
||||||
for (slotMap = constraintMap->child; slotMap; slotMap = slotMap->next)
|
for (slotMap = constraintMap->child; slotMap; slotMap = slotMap->next)
|
||||||
@ -331,7 +331,7 @@ static spAnimation* _spSkeletonJson_readAnimation (spSkeletonJson* self, Json* r
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Path constraint timelines. */
|
/** Path constraint timelines. */
|
||||||
for(constraintMap = paths ? paths->child : 0; constraintMap; constraintMap = constraintMap->next ) {
|
for(constraintMap = path ? path->child : 0; constraintMap; constraintMap = constraintMap->next ) {
|
||||||
int constraintIndex, i;
|
int constraintIndex, i;
|
||||||
Json* timelineMap;
|
Json* timelineMap;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user