Эх сурвалжийг харах

[cpp] Closes #2672, JSON inherit timeline parsing didn't advance key map properly.

Mario Zechner 9 сар өмнө
parent
commit
a2859f68e0

+ 1 - 0
spine-cpp/spine-cpp/src/spine/SkeletonJson.cpp

@@ -1175,6 +1175,7 @@ Animation *SkeletonJson::readAnimation(Json *root, SkeletonData *skeletonData) {
 					timeline->setFrame(frame, time, inherit);
 					timeline->setFrame(frame, time, inherit);
 					nextMap = keyMap->_next;
 					nextMap = keyMap->_next;
 					if (!nextMap) break;
 					if (!nextMap) break;
+					keyMap = nextMap;
 				}
 				}
 				timelines.add(timeline);
 				timelines.add(timeline);
 			} else {
 			} else {