浏览代码

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

Harald Csaszar 5 年之前
父节点
当前提交
af8691c98e
共有 1 个文件被更改,包括 2 次插入2 次删除
  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;
 					}