Browse Source

[cpp] Fixed incorrect computeHold computations (occurring under rare conditions). Closes #1702.

Harald Csaszar 5 years ago
parent
commit
af8691c98e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      spine-cpp/spine-cpp/src/spine/AnimationState.cpp

+ 2 - 2
spine-cpp/spine-cpp/src/spine/AnimationState.cpp

@@ -1031,9 +1031,9 @@ void AnimationState::computeHold(TrackEntry *entry) {
 			} else {
 				for (TrackEntry *next = to->_mixingTo; next != NULL; next = next->_mixingTo) {
 					if (next->_animation->hasTimeline(id)) continue;
-					if (entry->_mixDuration > 0) {
+					if (next->_mixDuration > 0) {
 						timelineMode[i] = HoldMix;
-						timelineHoldMix[i] = entry;
+						timelineHoldMix[i] = next;
 						i++;
 						goto continue_outer; // continue outer;
 					}