mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[c] Fixed strcmp bug in SkeletonJson.c. Closes #870.
This commit is contained in:
parent
c5cf1155a0
commit
58b992136b
@ -361,7 +361,7 @@ static spAnimation* _spSkeletonJson_readAnimation (spSkeletonJson* self, Json* r
|
||||
}
|
||||
animation->timelines[animation->timelinesCount++] = SUPER_CAST(spTimeline, timeline);
|
||||
animation->duration = MAX(animation->duration, timeline->frames[(timelineMap->size - 1) * PATHCONSTRAINTPOSITION_ENTRIES]);
|
||||
} else if (strcmp(timelineName, "mix")) {
|
||||
} else if (strcmp(timelineName, "mix") == 0) {
|
||||
spPathConstraintMixTimeline* timeline = spPathConstraintMixTimeline_create(timelineMap->size);
|
||||
timeline->pathConstraintIndex = constraintIndex;
|
||||
for (valueMap = timelineMap->child, frameIndex = 0; valueMap; valueMap = valueMap->next, ++frameIndex) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user