Fix infinite loop when reading json inherit timeline. (#2901)

This commit is contained in:
荧之空 2025-08-04 02:38:23 +08:00 committed by GitHub
parent cd726af62b
commit 8ddb2d8d0c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -549,6 +549,7 @@ static spAnimation *_spSkeletonJson_readAnimation(spSkeletonJson *self, Json *ro
spInheritTimeline_setFrame(timeline, frame, time, inherit); spInheritTimeline_setFrame(timeline, frame, time, inherit);
nextMap = keyMap->next; nextMap = keyMap->next;
if (!nextMap) break; if (!nextMap) break;
keyMap = nextMap;
} }
spTimelineArray_add(timelines, SUPER(timeline)); spTimelineArray_add(timelines, SUPER(timeline));
} else { } else {