Parcourir la source

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

Mario Zechner il y a 9 mois
Parent
commit
a2859f68e0
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      spine-cpp/spine-cpp/src/spine/SkeletonJson.cpp

+ 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);
 					nextMap = keyMap->_next;
 					if (!nextMap) break;
+					keyMap = nextMap;
 				}
 				timelines.add(timeline);
 			} else {