浏览代码

[c] Apply left over time additively to track time of delayed TrackEntry. See #1504.

badlogic 6 年之前
父节点
当前提交
c1cc7f4db8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-c/spine-c/src/spine/AnimationState.c

+ 1 - 1
spine-c/spine-c/src/spine/AnimationState.c

@@ -280,7 +280,7 @@ void spAnimationState_update (spAnimationState* self, float delta) {
 			float nextTime = current->trackLast - next->delay;
 			float nextTime = current->trackLast - next->delay;
 			if (nextTime >= 0) {
 			if (nextTime >= 0) {
 				next->delay = 0;
 				next->delay = 0;
-				next->trackTime = current->timeScale == 0 ? 0 : (nextTime / current->timeScale + delta) * next->timeScale;
+				next->trackTime += current->timeScale == 0 ? 0 : (nextTime / current->timeScale + delta) * next->timeScale;
 				current->trackTime += currentDelta;
 				current->trackTime += currentDelta;
 				_spAnimationState_setCurrent(self, i, next, 1);
 				_spAnimationState_setCurrent(self, i, next, 1);
 				while (next->mixingFrom) {
 				while (next->mixingFrom) {